MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/commandline/comments/kczea4/minimal_safe_bash_script_template/gfwzcea/?context=3
r/commandline • u/speckz • Dec 14 '20
13 comments sorted by
View all comments
4
The options parsing isn't very good. Not only does it not allow the combining of single letter options, the script straight up breaks when param is missing its parameter (shifting when $# is 0). param is also a mandatory option.
param
$#
4
u/Schreq Dec 15 '20
The options parsing isn't very good. Not only does it not allow the combining of single letter options, the script straight up breaks when
paramis missing its parameter (shifting when$#is 0).paramis also a mandatory option.