On Mon, Apr 02, 2012 at 04:28:54PM +0200, Fidu wrote:
> test "rrr" > $x redirects to file sss, instead of comparing.
> Any hint?
test rrr \> "$x"
or
test rrr ">" "$x"
However, it should be noted that ">" as a string comparison operator in
the test command is an extension, and not portable. As
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=