DEL mishandled inside double quotes

2005-02-16 Thread corey
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu' 
-DCONF_VENDOR='redhat' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib 
-D_FILE_OFFSET_BITS=64 -O2 -g -pipe -march=i386 -mcpu=i686
uname output: Linux futile2.cac.washington.edu 2.4.22-1.2174.nptl #1 Wed Feb 18 
16:38:32 EST 2004 i686 i686 i386 GNU/Linux
Machine Type: i386-redhat-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:

The DEL character is mishandled in double-quoted strings.
In the example below, the error happens in the line: T2="a $DEL".
Old BSD and System V shells work correctly.  The bash manpage says:

   Enclosing characters in double quotes preserves the literal
   value of all characters within the quotes, with the exception
   of $, `, and \.

So this doesn't seem to be a feature. :)

Repeat-By:

#!/bin/sh
DEL=`awk 'END{printf("%c", 0+127)}' http://lists.gnu.org/mailman/listinfo/bug-bash


Re: DEL mishandled inside double quotes

2005-02-16 Thread Corey Satten
That was fast, thanks!!

Corey

On Wed, 16 Feb 2005, Chet Ramey wrote:

> > Machine Type: i386-redhat-linux-gnu
> >
> > Bash Version: 2.05b
> > Patch Level: 0
> > Release Status: release
> >
> > Description:
> >
> > The DEL character is mishandled in double-quoted strings.
> > In the example below, the error happens in the line: T2="a $DEL".
> > Old BSD and System V shells work correctly.  The bash manpage says:
>
> This has been fixed for the next release.
>
> Chet
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ( ``Discere est Dolere'' -- chet )
>   Live...Laugh...Love
> Chet Ramey, ITS, CWRU[EMAIL PROTECTED]
> http://tiswww.tis.cwru.edu/~chet/
>


___
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash