swcarpentry / DEPRECATED-bc

DEPRECATED: This repository is now frozen - please see individual lesson repositories.
Other
299 stars 383 forks source link

do-stats.sh in shell 05-script.md causes goostats: command not found error #634

Closed jensv closed 7 years ago

jensv commented 9 years ago

I have observed that in the virtualbox maintained @jiffyclub and some mac os x machines running the script do-stats.sh described in novice/shell/05-script.md leads to an error goostats: command not found. This is fixed if bash is prepended on line 4 to goostats. I don't completely understand why but I saw the script run fine without the bash on line 4 on windows machines with git bash. In all cases the directory with goostats was not in the path. I guess the path of the script is being added when it is run on some machines? But I don't think permissions were set for goostats.

In #254 @rhiever prepended bash to goostats throughout the markdown file but not in the scripts, maybe because this error only occurs on some setups.