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: Tue, 13 Jan 2009 08:40:55 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Yang Zhang wrote:

> So it's failing on the first bang?  But there is no problem once I
> replace !$ with 'dhclient' - usually extglob seems to work fine with the
> suppression of history expansion.  Or does the presence of !$ somehow
> trigger history expansion (normally not run) which then attempts to
> history-expand everything?

Essentially the latter.  The presence of !$ causes execution to proceed
to a point where the check for !( was omitted.

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]