bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test - StringComparisons dont work


From: Fidu
Subject: test - StringComparisons dont work
Date: Mon, 02 Apr 2012 16:28:54 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120317 Icedove/3.0.11

BASH_VERSION='4.1.5(1)-release'

Hi!
x=sss;
test "rrr" > $x  redirects to file sss, instead of comparing.
Any hint?


Qu2:
How to use
 expr?expr:expr
              conditional operator
       = *= /= %= += -= <<= >>= &= ^= |=
              assignment

I didn't find any working construction?
   ($x=3)?(x=10:x=0);
Operators aren't explained anywhere?

thanks, Andrew




reply via email to

[Prev in Thread] Current Thread [Next in Thread]