>>>>> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:
Lars> My questions are; are there systems where the "false" and "true"
Lars> commands don't exists, and are there other problems with
Lars> scripting things this way?
Yes, they are portable. You can use `:' instead of `true', although
less readable, it is more common in the Autoconf world.
Just for the fun of it, let me mention another coding of booleans I
used for some of my scripts.
Context: the script `psset' uses another script, `fixps', and supports
an option `--quiet'. When psset calls fixps, of course it must pass
--quiet to fixps too.
So I use `:' for false, and `echo' for true, which allows me to write:
exec $fixps `$quiet -q` "$file" -o "$output"
which is much more simple than using true/false (although you still
can write:
exec $fixps `$quiet && echo -q` "$file" -o "$output"
which is not bad actually. Hm, I might change my mind :-).
Akim