Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!axion!fulcrum!tjo From: tjo@fulcrum.bt.co.uk (Tim Oldham) Newsgroups: comp.unix.questions Subject: Re: Retyping commands Message-ID: <293@cat.fulcrum.bt.co.uk> Date: 20 Sep 89 16:41:32 GMT References: <30@dynasys.UUCP> <17258@pasteur.Berkeley.EDU> Reply-To: tjo@fulcrum.bt.co.uk (Tim Oldham) Organization: BT IT Systems, Birmingham, England Lines: 22 In article <30@dynasys.UUCP> root@dynasys.UUCP (Super user) writes: > >Before working with unix, I worked with dos and I was wondering if there was >any way to do the following in unix: in dos hitting F2 or F3 would give you >the last command you typed. Is there anyway to do this in unix? Thanx. Various shells let you do this. I use bash, the Bourne Again SHell, which is free from the FSF. It's pretty damn good. I especially like the EMACS-style file completion facility, and it runs sh scripts. Not too much effort to port and debug - there were a few bugs, but it was only release 1.02. Could do with some more work to improve the signal handling on SysV, which can be flaky, particularly in scripts. Other shells which have some sort of line-editing or history mechanism include csh, ksh, ksh-i and wash. Tim. -- Tim Oldham tjo@fulcrum.bt.co.uk or ...!mcvax!ukc!axion!fulcrum!tjo #include Why have coffee, when caffeine tastes this good?