lhunath 1251708658 learn ''command; if [ $? -eq 0 ]'' is silly; instead of checking whether the exit code of the ''['' command is 0 with 'if', you should check your command directly: ''if command'' lhunath 1269525647 forget lhunath 1269525650 learn Don't do this: mycommand; if [ $? -eq 0 ] -- You're running the [ command and checking its exit code to test whether "mycommand"'s exit code is 0. That's a pointless operation, test mycommand directly: if mycommand e36freak 1301440748 forget e36freak 1301440765 learn Don't do this: ``mycommand; if [ $? -eq 0 ]'' -- You're running the [ command and checking its exit code to test whether "mycommand"'s exit code is 0. That's a pointless operation, test mycommand directly: ``if mycommand'' neoncortex 1403808139 forget neoncortex 1403808226 learn Don't do this: ``mycommand; if [ $? -eq 0 ]'' -- You're running the [ command and checking its exit code to test neoncortex 1403808238 forget lhunath 1403808404 learn Don't do this: ``mycommand; if [ $? -eq 0 ]'' -- You're running the [ command and checking its exit code to test whether "mycommand"'s exit code is 0. That's a pointless operation, test mycommand directly: ``if mycommand''