gnu.bash.bug
[Top] [All Lists]

Re: inconsistent treatment of backslash-bang

Subject: Re: inconsistent treatment of backslash-bang
From: Chet Ramey <chet.ramey@xxxxxxxx>
Date: Wed, 23 Jul 2008 08:51:13 -0400
Newsgroups: gnu.bash.bug

> That still leaves the issue of the discrepancy between the way bash actually
> behaves, and the way it's documented to behave.

Really.

This is from the man page, in the QUOTING section:

Enclosing characters in double quotes preserves the  literal  value  of
all  characters  within the quotes, with the exception of $, `, \, and,
when history expansion is enabled, !.  The characters $  and  `  retain
their  special meaning within double quotes.  The backslash retains its
special meaning only when followed by one of the following  characters:
$,  `,  ", \, or <newline>.  A double quote may be quoted within double
quotes by preceding it with a backslash.  If enabled, history expansion
will  be  performed  unless an !  appearing in double quotes is escaped
using a backslash.  The backslash preceding the !  is not removed.

Essentially the same text appears in the info document.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    chet@xxxxxxxx    http://tiswww.tis.case.edu/~chet/



<Prev in Thread] Current Thread [Next in Thread>