Value Passed to bash -c

$BASH_EXECUTION_STRING contains the value, which was passed to bash -c.

Examples

Print the current value :

1
bash -c 'echo input=-$BASH_EXECUTION_STRING-'

Output: input=-echo input=-$BASH_EXECUTION_STRING--.

BashSupport Pro is a Bash IDE with support for $BASH_EXECUTION_STRING – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal