bug-bash
[Top][All Lists]
Advanced

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

Re: Quick question: mv !(file) !$


From: Chet Ramey
Subject: Re: Quick question: mv !(file) !$
Date: Mon, 12 Jan 2009 10:59:56 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Yang Zhang wrote:
> Hi, why doesn't the second command work?  (Trying to move all files into
> a newly created directory.)
> 
> $ mkdir dhclient
> $ mv !(dhclient) !$
> bash: !: event not found

It doesn't work because enabling the `extglob' option doesn't cause bash
to tell the history library to not attempt history expansion when it sees
the history expansion character followed by a `('.  This will be fixed in
bash-4.0 or soon after.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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