Answers for "bash && vs semicolon"

1

bash && vs semicolon

$ cmd1 && cmd2 
will evaluate cmd 2 if cmd1 has a positive error status (0)

$ cmd1; cmd2
will evaluate cmd2 regardless of exist status of cmd1
Posted by: Guest on October-15-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language