Hi, I'm trying to figure out how to combine multiple commands in a
conditional with boolean operators, but I must be missing something.
I thought this is how "or" is meant to be used, but this gives "no" as the
output:
if false; or true
echo yes
else
echo no
end
If this is wrong, what is the proper equivalent of "if false || true" in
bash?
FYI, here is what I'm actually trying to do:
if test $host = 'nfshost'; or echo $distro | grep -Eq 'bsd$'
# do stuff
end
Thanks,
Nick
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users