Bash: (foo==0)?foo=1:foo=0 valid?
joe at zeff.us
Sat Jul 2 17:50:46 UTC 2011
On 07/02/2011 10:45 AM, Daniel B. Thurman wrote:
> I seem to forget my shell programming
> but is the following statement valid?
> I thought it was called the tristate conditional
> operator but in any case I could not find it in
I don't know if it's allowed in bash, or any other shell. I do know,
however, that it's a valid construct in C.
More information about the users