Quantcast
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


shell 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>