| Subject: | Re: set -x output of test operator is irretating |
|---|---|
| From: | Jan Schampera <jan.schampera@xxxxxx> |
| Date: | Thu, 31 Jul 2008 18:00:22 +0200 |
| Newsgroups: | gnu.bash.bug |
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....tfoerste@n22 ~ $ echo "1 2 3 4" | while read a b c d; do [[ "$a" = "$b" || "$a" = "$c" || "$a" = "$d" ]] && echo oops; done "When the == and != operators are used, the string to the right of the operator is considered a pattern [...]" From the description for [[ ]]. = and == should make have difference in behaviour. J. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: set -x output of test operator is irretating, Bob Proulx |
|---|---|
| Next by Date: | Re: set -x output of test operator is irretating, Francis Litterio |
| Previous by Thread: | Re: set -x output of test operator is irretating, Bob Proulx |
| Next by Thread: | Re: set -x output of test operator is irretating, Jan Schampera |
| Indexes: | [Date] [Thread] [Top] [All Lists] |