だから

cmd

if [ $? -eq 0 ]; then

echo OK

fi

とかする必要なくて

if cmd; then

echo OK

fi

で良いって知られてない気がする.

Reply to this note

Please Login to reply.

Discussion

No replies yet.