| Subject: | Re: inconsistent treatment of backslash-bang |
|---|---|
| From: | prj@xxxxxxxxxxx (Paul Jarc) |
| Date: | Sun, 20 Jul 2008 19:55:13 -0400 |
| Newsgroups: | gnu.bash.bug |
Lawrence D'Oliveiro <ldo@xxxxxxxxxxxxxxxxxxx> wrote: > Chet Ramey wrote: >> I already explained that bash follows csh as closely as possible >> in its history expansion implementation. > > Well, it doesn't: Sure it does: in your examples, bash tries history expansion in exactly the same cases as tcsh. Where they differ is in escape/quote handling, since bash comes from the Bourne shell tradition, and tcsh comes from the completely incompatible C shell tradition. It's not at all surprising that merging behaviors from these two disparate shells would result in some rought edges. > Either \ acts as an escape or it doesn't You would like that to be true, as would lots of other people. But the current behavior is too well-entrenched to change now without breaking lots of people's expectations, based on bash's past behavior. It's not going to change. You are free to patch your own copy of bash, or use a different shell that aims for self-consistency over historical consistency. paul |
| Previous by Date: | Re: setuid from shellscript isn't permanent, Bob Proulx |
|---|---|
| Next by Date: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
| Previous by Thread: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
| Next by Thread: | Re: inconsistent treatment of backslash-bang, Lawrence D'Oliveiro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |