Skip to content
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

Improve bash examples. #103

Merged
merged 1 commit into from
Feb 16, 2015
Merged

Improve bash examples. #103

merged 1 commit into from
Feb 16, 2015

Conversation

ruediger
Copy link

See also http://www.shellcheck.net/

  • examples/bash/count.sh,README.md: seq is nonstandard, inefficient.
    Use shell built-in loop feature instead.
  • examples/bash/dump-env.sh: Double quote to prevent globbing (SC2086)
  • examples/bash/send-receive.sh: Use _ for unused variable; Improved use
    of shell arithmetic ((cnt++)); Use $().

See also http://www.shellcheck.net/

* examples/bash/count.sh,README.md: `seq` is nonstandard, inefficient.
  Use shell built-in loop feature instead.
* examples/bash/dump-env.sh: Double quote to prevent globbing (SC2086)
* examples/bash/send-receive.sh: Use _ for unused variable; Improved use
  of shell arithmetic ((cnt++)); Use $().
@asergeyev
Copy link
Collaborator

All these work in 5+ year old bash on BSD. Should be good to merge. Unless anyone disagrees I'll go forward with it in day or so.

@asergeyev asergeyev added this to the 0.2.10 milestone Feb 16, 2015
@joewalnes
Copy link
Owner

LGTM.

Also update the homepage (index.html in gh-pages branch)

asergeyev added a commit that referenced this pull request Feb 16, 2015
@asergeyev asergeyev merged commit b31806f into joewalnes:master Feb 16, 2015
asergeyev added a commit that referenced this pull request Feb 16, 2015
@ruediger ruediger deleted the fix/bash branch February 16, 2015 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants