* Re: use of arrows to repeat command on 4.0D
1999-05-11 4:00 use of arrows to repeat command on 4.0D Dominique Kindt
@ 1999-05-11 4:00 ` Ed Wensell III aka THE StormRaiser
1999-05-11 4:00 ` Bob Koehler
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ed Wensell III aka THE StormRaiser @ 1999-05-11 4:00 UTC (permalink / raw)
Dominique Kindt wrote:
>
> Hello,
>
> I am currently trying to repeat the last command(s) with the arrows on a
> Digital Unix v 4.0D. I know bash does it but I had some troubles with it
> so I decided not to use it anymore. Can anybody help me?
This depends on what shell you are using...
For csh, set the following in your (or the system wide) .login:
set editmode=emacs
set history=20
The history can be adjusted to however many commands you want to keep
track of. For Korn shell, set one of the following in your (or the
system wide) .profile:
set -o emacs
- or -
export EDITOR=emacs
I'm not sure where to set the history list size on the latter.
In both shells, these are dependent on whether or not you are using a
capable terminal/emulator. Replace emacs with vi for vi style command
editing.
Bourne shell does not support it, as far as I know.
Personally, this sounds like one of those little things that should be
in the Tru64/DUNIX FAQ... It appears to be very buried in the regular
documentation.
--
Until soon...
Ed Wensell III
Systems and Operations Support, Pellissippi State
E-mail hint: A college with a dot net domain?
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: use of arrows to repeat command on 4.0D
1999-05-11 4:00 use of arrows to repeat command on 4.0D Dominique Kindt
1999-05-11 4:00 ` Ed Wensell III aka THE StormRaiser
@ 1999-05-11 4:00 ` Bob Koehler
1999-05-11 4:00 ` Brendan Welch
1999-05-11 4:00 ` Frank J. Perricone
3 siblings, 0 replies; 5+ messages in thread
From: Bob Koehler @ 1999-05-11 4:00 UTC (permalink / raw)
In article <3737EA9C.2CA387E@ufsia.ac.be>, Dominique Kindt <dominique.kindt@ufsia.ac.be> writes:
>Hello,
>
>I am currently trying to repeat the last command(s) with the arrows on a
>Digital Unix v 4.0D. I know bash does it but I had some troubles with it
>so I decided not to use it anymore. Can anybody help me?
>
There's the rub. This is a function of the shell. You'll find similar
capabilities in ksh (in vi mode you get to use hjkl instead of arrow
keys), or in tcsh.
What shell are you trying to use?
----------------------------------------------------------------------
Bob Koehler | Computer Sciences Corporation
Hubble Space Telescope Payload | Federal Sector, Civil Group
Flight Software Team | please remove ".aspm" when replying
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: use of arrows to repeat command on 4.0D
1999-05-11 4:00 use of arrows to repeat command on 4.0D Dominique Kindt
1999-05-11 4:00 ` Ed Wensell III aka THE StormRaiser
1999-05-11 4:00 ` Bob Koehler
@ 1999-05-11 4:00 ` Brendan Welch
1999-05-11 4:00 ` Frank J. Perricone
3 siblings, 0 replies; 5+ messages in thread
From: Brendan Welch @ 1999-05-11 4:00 UTC (permalink / raw)
Dominique Kindt wrote:
> Hello,
>
> I am currently trying to repeat the last command(s) with the arrows on a
> Digital Unix v 4.0D. I know bash does it but I had some troubles with it
> so I decided not to use it anymore. Can anybody help me?
One way that works for us is
ksh
set -o emacs
You may have to expand the ksh command to include the full path.
There was also published here another shell than ksh which would
do it, but I forget.
--
Brendan Welch, system analyst, Univ. of Massachusetts - Lowell, W1LPG
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: use of arrows to repeat command on 4.0D
1999-05-11 4:00 use of arrows to repeat command on 4.0D Dominique Kindt
` (2 preceding siblings ...)
1999-05-11 4:00 ` Brendan Welch
@ 1999-05-11 4:00 ` Frank J. Perricone
3 siblings, 0 replies; 5+ messages in thread
From: Frank J. Perricone @ 1999-05-11 4:00 UTC (permalink / raw)
You told us what shell you're not using, but not what shell you are using.
Dominique Kindt <dominique.kindt@ufsia.ac.be> wrote in message
news:3737EA9C.2CA387E@ufsia.ac.be...
> Hello,
>
> I am currently trying to repeat the last command(s) with the arrows on a
> Digital Unix v 4.0D. I know bash does it but I had some troubles with it
> so I decided not to use it anymore. Can anybody help me?
>
^ permalink raw reply [flat|nested] 5+ messages in thread