bug-bash
[Top][All Lists]
Advanced

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

Re: inconsistent treatment of backslash-bang


From: Lawrence D'Oliveiro
Subject: Re: inconsistent treatment of backslash-bang
Date: Mon, 21 Jul 2008 15:26:12 +1200
User-agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6

Chet Ramey wrote:

> csh allows backslash to act as an escape character
> (that is, it is removed) when it precedes ! in a double-quoted string.
> Bash doesn't ...

But if it doesn't, then why does bang not have its history-expansion
behaviour? Either it's acting as an escape or it isn't. Which is it supposed
to be?

> -- and Posix and historical sh behavior agree.  Plain and simple.

But you also said:

> I already explained that bash follows csh as closely as possible
> in its history expansion implementation.

So which is it? Is bash trying to follow csh behaviour "as closely as
possible", or not?





reply via email to

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