azet / community_bash_style_guide

Community Bash Style Guide: writing useful and modern bash scripts, seriously.
Creative Commons Attribution 4.0 International
298 stars 37 forks source link

Iterate a range of numbers defined by a variable #8

Closed dpertin closed 9 years ago

dpertin commented 9 years ago

Hello,

First of all thanks for this nice repo :+1:

In the "do not use seq" part you recommend to use the bash built-in range expression which is not straightforward compatible with variables since it works with literals.

Then, is there a best option ? || which of those two options is the best:

azet commented 9 years ago

Hi @denaitre,

Thanks for your feedback.

As far as I understand it's possible to use brace expansion for these: http://wiki.bash-hackers.org/syntax/expansion/brace

I'm currently very busy. Would you mind opening a pull request with your suggested changes?

azet commented 9 years ago

any update?