↧
Answer by mikeserv for shell script options pass through to sub-command
If you specify that -- marks the end of options and all following arguments will be passed through to the subcommand, you can do something like you might find in man getopts: aflag= bflag= while...
View ArticleAnswer by Hauke Laging for shell script options pass through to sub-command
One work-around would be: ... -o "x--no-create-db --replace" # in the script: option="${option#x}" As a general rule: You should quote everything (that may be quoted).
View Articleshell script options pass through to sub-command
I'm writing a wrapper script for that uses getopts to set various options for mysqldump. It's working well so far. However one thing I would like to do is be able to add another option in my shell...
View Article