| Subject: | Re: Quick question: mv !(file) !$ |
|---|---|
| From: | Yang Zhang |
| Date: | Tue, 13 Jan 2009 04:34:15 -0500 |
| Newsgroups: | gnu.bash.bug |
Chet Ramey wrote: 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 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? -- Yang Zhang http://www.mit.edu/~y_z/ |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: execution hook, Bob Proulx |
|---|---|
| Next by Date: | Re: execution hook, eneville_ |
| Previous by Thread: | Re: Quick question: mv !(file) !$, Chet Ramey |
| Next by Thread: | Re: Quick question: mv !(file) !$, Chet Ramey |
| Indexes: | [Date] [Thread] [Top] [All Lists] |