Re: [bash-3.2.39] race condition on AIX when using libtool with bash

2008-07-31 Thread Michael Haubenwallner
On Wed, 2008-07-30 at 18:53 +0200, Michael Haubenwallner wrote: > Now I can see (stripped the unimportant): > open("GetWMCMapW.loT", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE) = 4 > kfcntl(4, 14, 0x0001) = 1 > close(4)= 0 > open("/tmp//sh-thd-

Re: function name bug ?

2008-07-31 Thread Jan Schampera
christophe malvasio wrote: cbz (){ echo "why 'cbz' not a valid function name ?";} bash: syntax error near unexpected token `(' It works for me. What does "alias cbz" say for you? alias work He wants to know if you probably have an alias named "cbz" defined, not if your alias engine works.

Re: set -x output of test operator is irretating

2008-07-31 Thread Bob Proulx
Chet Ramey wrote: > Toralf Förster wrote: > >I'm wondering why in the example (see below) the right side is > >prefixed with a '\' wheras the left side is unchanged. > >... > >[EMAIL PROTECTED] ~ $ echo "1 2 3 4" | while read a b c d; do [[ > > "$a" = > >"$b" || "

Re: set -x output of test operator is irretating

2008-07-31 Thread Jan Schampera
Bob Proulx wrote: Chet Ramey wrote: Toralf Förster wrote: I'm wondering why in the example (see below) the right side is prefixed with a '\' wheras the left side is unchanged. ... [EMAIL PROTECTED] ~ $ echo "1 2 3 4" | while read a b c d; do [[ "$a" = "$b" || "$a"

Re: set -x output of test operator is irretating

2008-07-31 Thread Jan Schampera
Jan Schampera wrote: = and == should make have difference in behaviour. "should not show differences" *suh* Sorry J.

Re: set -x output of test operator is irretating

2008-07-31 Thread Francis Litterio
Jan Schampera wrote: > Bob Proulx wrote: >> Chet Ramey wrote: ... >>> Because the ==/!=/= operators are defined to match the rhs as a pattern >>> unless it's quoted. You quoted the original string, and the `set -x' >>> output is supposed to be re-usable as input, so the trace output is >>> quoted

One cant insert a single quote into a variable with built-in substitution.

2008-07-31 Thread Damien Nadé
Hello I've tried to insert a single quote into a variable content. With something like this : bash-3.2$ foo=bar bash-3.2$ echo "${foo/%/'}" > If you look at that, you understand that > is the $PS2, so it means that bash is interpreting the single quote a special char. So, naturally, I