Xref: utzoo comp.lang.c:26097 comp.sys.hp:4374 comp.misc:8237 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!santra!hemuli.tik.vtt.fi!tml From: tml@hemuli.tik.vtt.fi (Tor Lillqvist) Newsgroups: comp.lang.c,comp.sys.hp,comp.misc Subject: Re: CI.STK history function Message-ID: <4536@hemuli.tik.vtt.fi> Date: 20 Feb 90 10:30:47 GMT References: <1990Feb19.235123.5458@sjuphil.uucp> Followup-To: comp.lang.c Organization: Technical Research Centre of Finland, Laboratory for Information Processing (VTT/TIK) Lines: 44 In article <1990Feb19.235123.5458@sjuphil.uucp> ryan@sjuphil.uucp (Patrick M. Ryan) writes: >I have never been overly thrilled with the history capabilities of any >of the Un*x shells which I have used (csh, sh, ksh, tcsh, etc.). One >history command I do like, though, is the one in HP's RTE-A running >on an HP 1000. The way it works is this: Type '/' and the system >will display the last 10 (or so) commands you have executed (in >much the same way as csh's 'history'). One then simply moves the >cursor up the list of commands and hits RETURN on the one he or >she wishes to repeat. The user also has the option, while perusing >the list, of editing a command in wordprocessor-like fashion before >executing it. If the user types '//' instead of '/', just the last >command is displayed. Easy, no? \begin{flame} This guy must be joking... Has he really tried Emacs (or vi) editing mode in ksh (or bash)? I don't understand how he can claim that RTE-A's pathetic command stack is better. - CI: only works on HP terminals, and if EnqAck handshake enabled - ksh: works on any terminal described by terminfo - CI: only uses the terminal's local editing capabilities (wordprocessor-like fashion, sure... if you call edit/1000 a wordprocessor) - ksh: you can move to end of line with Control-e, over a word with Meta-f, etc. Numeric args (Control-U, Meta-[1-9] work, too. - CI: no searching - ksh: Control-R searches for command matching string - CI: if the command line you want to re-execute was longer that 80 chars, tough... - ksh: scrolls horizontally That said above for ksh also goes for bash (the GNU Bourne Again Shell), only more so. Let's hope the next version will compile and work well on HP-UX systems, too. \end{flame} -- Tor Lillqvist, working, but not speaking, for the Technical Research Centre of Finland