bug-bash
[Top][All Lists]
Advanced

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

Re: tables - $'\x7f' does not loaded properly


From: Chet Ramey
Subject: Re: tables - $'\x7f' does not loaded properly
Date: Sat, 18 Oct 2008 16:44:11 -0400
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

Antonio Macchi wrote:
> $ a=( $'\x7e' $'\x7f' $'\x80' )
> 
> $ hexdump -C <(echo -n ${a[@]} )
> 00000000  7e 20 01 7f 20 80                                 |~ .. .|
> 00000006
> 
> 
> bash puts two characters (\x01 and \x7f) instead of only one \x7f

Yes, it's a bug.  Thanks for the report.  It will be fixed in the next
version of bash.  It's only a problem in these exact circumstances --
ansi-c quoted strings in a compound array assignment.

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

Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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