|
|
|
|
|
by cesnja
940 days ago
|
|
I'd advise against that kind of shortening. If you use set -e, which you should, then if [ a = b ]; then
echo "Oops!"
fi
will do exactly what you imagined, but [ a = b ] && echo "Oops!"
will quit with an error if expression a does not equal expression b. |
|