Re: [leaf-devel] inverting exit status

2004-07-05 Thread Charles Steinkuehler
Chad Carr wrote: Shell gurus, Is there a reliable cross-platform way to write an inverted if statement? Something like bash's: if ! /usr/bin/false # with some other command, obviously then # do something true else # do something false

Re: [leaf-devel] inverting exit status

2004-07-05 Thread Mike Noyes
On Mon, 2004-07-05 at 17:39, Chad Carr wrote: > Shell gurus, Chad, I'm by no means a shell guru, but this Google string may help. Google string: inverted if posix ash > Is there a reliable cross-platform way to write an inverted if > statement? Something like bash's: > > if ! /usr/bin/f

[leaf-devel] inverting exit status

2004-07-05 Thread Chad Carr
Shell gurus, Is there a reliable cross-platform way to write an inverted if statement? Something like bash's: if ! /usr/bin/false # with some other command, obviously then # do something true else # do something false fi Your assist