Improve copy around single equal signs #34

Thanks to galaktos
This commit is contained in:
Kevin van Zonneveld 2016-06-22 20:38:36 +02:00
parent 9dea81377e
commit 1166c878be

View File

@ -136,7 +136,7 @@ $ my_script some more args --blah
1. Use two spaces for tabs
1. Use long options (`logger --priority` vs `logger -p`). If you're on cli, abbreviations make sense for efficiency. but when you're writing reusable scripts a few extra keystrokes will pay off in readability and avoid ventures into man pages in the future by you or your collaborators. Similarly, we prefer `set -o nounset` over `set -u`.
1. Use a single equal sign when checking `if [ "${NAME}" = "Kevin" ]`, double or triple signs are not needed in Bash
1. Use a single equal sign when checking `if [ "${NAME}" = "Kevin" ]`, double or triple signs are not needed.
### Safety and Portability