Quantcast
Channel: shell script options pass through to sub-command - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by Hauke Laging for shell script options pass through to sub-command

$
0
0

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).


Viewing all articles
Browse latest Browse all 3

Trending Articles