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
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
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