Konubinix' opinionated web of thoughts

How to Correctly Wrap Commands in Bash

Fleeting

how to correctly wrap commands in bash

Build the command line

args=()
args+=(--args --some-other args)

Then, pass it, with the correct quoting.

mycommand "${args[@]}" someotheroptions