Hi,
The bash man page lists the ternary operator:
expr?expr:expr
However, I can't figure out how one is supposed to use it in bash.
I would expect it to be analagous to the same operator in C:
$ [ foo = 1 ] ? echo yes : echo no
bash: [: missing `]'
but this is clearly not what bash is expecting.
What am I missing?
Ian
--
Ian Macdonald | "Our vision is to speed up time, eventually
ian@caliban.org | eliminating it." -- Alex Schure
|
|
|