Subject: Re: VMS conventions/command line history
To: Steve Revilak <revilak@UMBSKY.CC.UMB.EDU>
From: Henry B. Hotz <hotz@jpl.nasa.gov>
List: port-mac68k
Date: 03/27/1998 11:31:37
At 10:12 AM -0800 3/27/98, Steve Revilak wrote:
>Having worked in VMS environments, there is one VMS convention (also exists
>in DOS) regarding command line history whose Unix equivalent I'd love to
>know.
ksh supports something like that if you enable it with the right set
command so it knows which editor commands to emulate. Something like "set
-o vi", but my memory is more than two years old on this point. tcsh and
bash may have something like this as well, but I'm not sure.
>
>The 'up' arrow-- on VMS systems would cycle backwards through the command
>history, *without* executing the line. (ie--as if you had re-typed the
>line without pressing <return>. Useful for dealing with typos, etc. I'm
>familiar with 'history' and !!, !*, and ![command-number], but these all
>re-execute the command, not allowing changes. (ie--type the command line,
>followed by <return>).
In csh you can also do:
% ld
*error message*
% ^d^s^
*directory listing*
There are variations to allow editing a specific history line. See man csh
for the details.
Signature failed Preliminary Design Review.
Feasibility of a new signature is currently being evaluated.
h.b.hotz@jpl.nasa.gov, or hbhotz@oxy.edu