Re: [Fwd: [PATCH] arithmetic -> logical shift]

2008-10-18 Thread Chet Ramey
Pádraig Brady wrote: > Original Message > Date: Tue, 07 Oct 2008 11:55:51 +0100 > From: Pádraig Brady <[EMAIL PROTECTED]> > To: Chet Ramey <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED] > > I was just discussing bit shifting with Tim Hockin using shell > arithmetic expansion, and he

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

2008-10-18 Thread Chet Ramey
Antonio Macchi wrote: > $ a=( $'\x7e' $'\x7f' $'\x80' ) > > $ hexdump -C <(echo -n [EMAIL PROTECTED] ) > 7e 20 01 7f 20 80 |~ .. .| > 0006 > > > bash puts two characters (\x01 and \x7f) instead of only one \x7f Yes, it's a bug. Thanks for the repor

Re: eval "{" has exit status 0

2008-10-18 Thread Chet Ramey
[EMAIL PROTECTED] wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' > -DCONF_VENDOR='u

Re: running source twice wont use arguments

2008-10-18 Thread Chet Ramey
pgb wrote: > What in my environment, post-script-run is making the second source not > "see" the command line arguments? Bash doesn't behave as you observe: $ cat x1 cat > /tmp/x1 <<\EOF echo source: arguments: "$@" EOF . /tmp/x1 -o foo -x bar quux echo main arguments: "$@" . /tmp/x1 -o foo -x

Re: running source twice wont use arguments

2008-10-18 Thread Bernd Eggink
pgb schrieb: I have a bash script that I run using source because I want to be left in the environment that the script sets up after running the script. The script takes a few arguments and sets up an environment for me that includes library paths, classpaths, JAVA_HOME, appends to the PATH, crea

tables - $'\x7f' does not loaded properly

2008-10-18 Thread Antonio Macchi
$ a=( $'\x7e' $'\x7f' $'\x80' ) $ hexdump -C <(echo -n [EMAIL PROTECTED] ) 7e 20 01 7f 20 80 |~ .. .| 0006 bash puts two characters (\x01 and \x7f) instead of only one \x7f but... $ a[1]=$'\x7f' $ hexdump -C <(echo -n [EMAIL PROTECTED] ) 0