| Subject: | Re: inconsistent treatment of backslash-bang |
|---|---|
| From: | Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 18 Jul 2008 17:35:51 +1200 |
| Newsgroups: | gnu.bash.bug |
Chet Ramey wrote: > Here's the deal. Only single quotes and backslashes quote the history > expansion character. Double quotes don't matter ... Then why do they cause a difference in behaviour? > Since ! is not one of the characters for which Posix says the backslash > will act as an escape, the rest of the word expansions leave it alone. Then why does “\!” act as “!” under any circumstances at all? > This is explained pretty well in the HISTORY EXPANSION section of the > manual page. Do you mean this sentence from section 9.3: “Only ‘\’ and ‘'’ may be used to escape the history expansion character”. How exactly does that explain why there is a difference inside versus outside double-quotes? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | command line vi style editing - is that possible?, ggolub |
|---|---|
| Next by Date: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
| Previous by Thread: | Re: inconsistent treatment of backslash-bang, Chet Ramey |
| Next by Thread: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |