Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Shell script cleanups #10773
+32
−32
Conversation
practicalswift
added some commits
Jul 8, 2017
fanquake
added Refactoring Scripts and tools
labels
Jul 8, 2017
|
do we have someone on OpenBSD or likewise to test this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
practicalswift commentedJul 8, 2017
•
edited
Shell script cleanups:
[ -n ].cdfails.\nwhich is not handled byecho.$in arithmetic variable expression.$(command)instead of legacy form`command`.sh. Usebashwhen arrays are used.[ foo -a bar ]is not well defined, use[ foo ] && [ bar ]instead.[ foo -o bar ]is not well defined, use[ foo ] || [ bar ]instead.