| Subject: | Re: inconsistent treatment of backslash-bang |
|---|---|
| From: | Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxx> |
| Date: | Sat, 19 Jul 2008 17:29:37 +1200 |
| Newsgroups: | gnu.bash.bug |
Chet Ramey wrote: > I already explained that bash follows csh as closely as possible > in its history expansion implementation. Well, it doesn't: ldo@hypatia:~> /bin/tcsh hypatia /home/ldo> echo hi there!0 0: Event not found. hypatia /home/ldo> echo "hi there!0" 0: Event not found. hypatia /home/ldo> echo "hi there\!0" hi there!0 hypatia /home/ldo> echo hi there\!0 hi there!0 (Compare the bash output in my bug report.) > This means that backslash doesn't escape the !, and isn't removed. If it doesn't escape the !, then how come the ! doesn't have its usual history-expansion meaning? Either \ acts as an escape or it doesn't, having it part of one and part of the other is an inconsistency. Simple as that. |
| Previous by Date: | Re: command line vi style editing - is that possible?, Chet Ramey |
|---|---|
| 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] |