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    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/


Reply via email to