Bash: (foo==0)?foo=1:foo=0 valid?
- From: "Daniel B. Thurman" <dant@xxxxxxxxx>
- Date: Sat, 02 Jul 2011 10:45:52 -0700
I seem to forget my shell programming
but is the following statement valid?
($foo==0)?foo=1:foo=0
I thought it was called the tristate conditional
operator but in any case I could not find it in
google.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
- Follow-Ups:
- Re: Bash: (foo==0)?foo=1:foo=0 valid?
- From: Robert Nichols
- Re: Bash: (foo==0)?foo=1:foo=0 valid?
- From: inode0
- Re: Bash: (foo==0)?foo=1:foo=0 valid?
- From: Joe Zeff
- Re: Bash: (foo==0)?foo=1:foo=0 valid?
- Prev by Date: Re: Fedora Security and the Uverse 3800HGV-B router
- Next by Date: Re: Bash: (foo==0)?foo=1:foo=0 valid?
- Previous by thread: Request
- Next by thread: Re: Bash: (foo==0)?foo=1:foo=0 valid?
- Index(es):
Relevant Pages
|