bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-word matching in history expansion


From: Bob Proulx
Subject: Re: Multi-word matching in history expansion
Date: Mon, 1 Oct 2007 00:46:36 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

The Wanderer wrote:
> Quite some time and several varyingly-significant updates of bash
> ago, I was able to perform history expansion on multi-word commands.
>
> At present and for some while now, it instead expands to
> 
> ls /tmp/ /h

This is also what csh does in this situation too.  This type of
history substitution originated with csh and it would be the standard
against which other implementations would be compared.

  $ csh
  % echo one two three
  one two three
  % echo four five six
  four five six
  % !echo one
  echo four five six one
  four five six one
  % 

But I don't know the code history of this feature in bash.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]