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