I want to test my script with a command that fails. I could use an existing command with bad arguments. I could also write a simple script that immediately exits with a failure. Both of these are easy ...
I want to do something like this: if cmd1 && cmd2 echo success else echo epic fail fi How should I do it?