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 the [[

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 || $a = $c || $a = $d

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 = $c ||

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.