I know this is a meme and not GitHub, but I thought some people might like to learn that if you do please shutdown && thanks it won’t say you’re welcome if the shutdown failed
Wait, isn’t it the other way around? I thought ; only executed the next command if the previous one succeeded, and && executed the next command regardless of exit status.
alias thanks="echo 'You are most welcomed'"please shutdown; thanksI know this is a meme and not GitHub, but I thought some people might like to learn that if you do
please shutdown && thanksit won’t say you’re welcome if the shutdown failedWait, isn’t it the other way around? I thought ; only executed the next command if the previous one succeeded, and && executed the next command regardless of exit status.
No, OP is correct, && only continues on exit 0. || For anything but zero, ; just chains another command.
alias sudo fucking
fucking systemctl restart firewalld.service
fucking shutdown
Reminds me of my favorite command line utility.
Is their a still maintained fork?
I use Pay Respects now
Kind stranger; you made my day
you need to use the
echocommand if you want to echo something:alias thanks="echo 'You are most welcomed'"(the inner single-quotes are not strictly required in this case, but recommended nonetheless)
Huh yeah my bad, wrote this too fast in-between two messages at work