Re: set -x output of test operator is irretating

2008-08-02 Thread Bob Proulx
Chet Ramey wrote: > Bob Proulx wrote: > >Of course that makes sense for the "==" and "!=" cases. But is that > >true even for the "=" case? For the "=" case I thought it was > >"STRING1 = STRING2" and not "STRING = PATTERN". > > `=' and `==' are always equivalent. When used in the test/[ comman

Re: set -x output of test operator is irretating

2008-08-01 Thread Chet Ramey
Bob Proulx wrote: Of course that makes sense for the "==" and "!=" cases. But is that true even for the "=" case? For the "=" case I thought it was "STRING1 = STRING2" and not "STRING = PATTERN". `=' and `==' are always equivalent. When used in the test/[ command, they match strings. In th

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

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 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 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-30 Thread Chet Ramey
Toralf Förster wrote: Bash Version: 3.2 Patch Level: 33 Release Status: release Description: I'm wondering why in the example (see below) the right side is prefixed with a '\' wheras the left side is unchanged. Repeat-By: [EMAIL PROTECTED] ~ $ echo "1 2 3 4" | while read a b c

set -x output of test operator is irretating

2008-07-27 Thread Toralf Förster
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: i686-pc-linux-gnu-gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/loc