-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor coding style changes and typo fixes #1
base: master
Are you sure you want to change the base?
Conversation
likewhoa
commented
Jan 5, 2014
- Switched to BASH Arithmetic expressions for some if statements that used numbers.
- Added ${var} as best practice
- Minor spelling fixes
1. Switched to BASH Arithmetic expressions for some if statements that used numbers. 2. Added ${var} as best practice 3. Minor spelling fixes
Example: ./datawatch.sh xpool jump | ||
(xpool - dtc.xpoll.xram.co | gpool - dtc.gpoool.net) | ||
WARNING: you have to edit script if you haven't do so. | ||
USAGE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exit
got lost here i guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a much better way to print multiple lines, instead of having all those echos :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still no exit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I missed the exit
Hmm, what am I doing here... Could you explain why using ${var} everywhere is best practice? I know there are situations where they are clearly needed (like arrays). Thanks for noticing the script and writing the patch, though! |
@arkhebuz ${var} habit for me really, but allot of people in #bash can agree on making a habit in ${var} and or "${var}" |
As far as Bash practices go, I would call quotation marks mandatory if you don't want end up like bumblebe. About these DNS servers, I checked that with echos like below to be sure.
And this gives me:
So I need to fix the fix of a patch. |
OK, if you have something more to comment here, feel free to do so. I will merge the second branch (based on your modified patch) with master soon, then close this request. Little long discussion for such small piece of code... 100 sloc in Bash - serious business. |