[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inconsistent treatment of backslash-bang

From: Paul Jarc
Subject: Re: inconsistent treatment of backslash-bang
Date: Sun, 20 Jul 2008 19:55:13 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Lawrence D'Oliveiro <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]