04-26-2007 08:48 AM
Thats the way linux does it.
Been a while since I used c shell but I don't think it even keeps a keyboard history.
Owner of ISN Corporation
04-26-2007 09:01 AM
04-27-2007 01:01 AM
@SEP - of course does csh keeps it's history :-)
From 'man csh':
History substitutions enable you to repeat commands, use words from previous commands as portions of new commands, repeat arguments of a previous command in the current command, and fix spelling or typing mistakes in an earlier command.
History substitutions begin with an exclamation point (!).
The number of previous commands saved is controlled by the history variable. The previous command is always saved, regardless of its value. Commands are numbered sequentially from 1.
You can refer to previous events by event number (such as !10 for event 10), relative event location (such as !-2 for the second previous event), full or partial command name (such as !d for the last event using a command with initial character d), and string expression (such as !?mic? referring to an event containing the characters mic).
These forms, without further modification, simply reintroduce the words of the specified events, each separated by a single blank. As a special case, !! is a re-do; it refers to the previous command.
'history' (or it's alias) show you the stored history, and with '!
As a special, you can use '^' to change the last command, so if your lsat command was 'ls', with ^s^l you'll get 'll' as the next command - of course you'll use that for longer commands.
But I've not yet seen, that csh works with arrows.
Then you should use 'bash' for example.
04-27-2007 07:14 PM
>Volkmar: But I've not yet seen, that csh works with arrows.
That's why I call it the scummy csh. Unless it can do vi (or emacs) editing, editing by sed like commands is next to useless.
04-27-2007 10:45 PM
you have to use tcsh for this - the Tenex C-Shell is a superset of the old csh.
tcsh is available at the HP porting center.
04-27-2007 11:19 PM
You can install bash.
See the below thread
It talks about an alias option.