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
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
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
Jan Schampera wrote:
= and == should make have difference in behaviour.
"should not show differences" *suh*
Sorry
J.
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"
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" || "
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
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