Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Sender: smithd AT mailhost DOT bellhow DOT com Message-ID: <36D1F492.1F497104@bellhow.com> Date: Mon, 22 Feb 1999 19:21:38 -0500 From: "Dale P. Smith" Reply-To: dale DOT smith AT bellhow DOT com Organization: Bell & Howell PSC X-Mailer: Mozilla 4.5 [en] (X11; U; Linux 2.0.29 i686) X-Accept-Language: en MIME-Version: 1.0 CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Any shell has the following behaviour References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ah yes, 4dos. I remember it well. The *only* way to use dos. The Ctrl-r in bash is not quite the same thing. It searches through all of the history, not just the start of commands. For example, it will find every command *and* *argument* that has `ls' it it, not just `ls' commands. The way to get 4dos functionality in bash is with `history-search-backward' and `history-search-forward'. They do a non-incremental search (you can't add to the search string) with the contents of the command line. From the man page: history-search-backward Search backward through the history for the string of characters between the start of the current line and the point. This is a non-incremental search. I usually bind it to Ctrl-Up (and history-search-forward to Ctrl-Down). The problem with it is is you have to have something on the command line to use as a search string. Dale Graham Murray wrote: > > Yes, bash. > Type ^R then start typing the command and it give you the matches. > > > ---------- > > From: alex[SMTP:tinbb AT hkplanet DOT com] > > Sent: 20 February 1999 02:10 > > To: cygwin AT sourceware DOT cygnus DOT com > > Subject: Any shell has the following behaviour > > > > Hi, > > Is there any shell which the command line history function like > > 4DOS ? > > In 4DOS, it will remember what you typed before and it will match the > > command for you during you type. I know that there are many shell > > support command line history but i can't find a shell which can match > > the command for you. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com