You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does one construct those command-lines above, for boost.process??
If I copy/paste the above commands in bash, I get this output:
pid 20906
done
killing -20906
Terminated // this line (and line above this one) is printed because of EXIT in the command (removing EXIT, will result in TERMINATED not being printed
More easily readable, I basically want to have /bin/bash execute the following:
Hi,
how can one get the quoting and escaping right, when one wants to issue complex command-lines?
Here are examples:
a)
/bin/bash -c 'set -Eeuo pipefail ; trap "trap - SIGTERM && echo \"killing -$$\" && kill -- -$$" SIGINT SIGTERM EXIT; echo "pid $$" ; sleep 1; echo "done"'
equiv with the following (but now using only double-quotes)
b)
/bin/bash -c "set -Eeuo pipefail ; trap \"trap - SIGTERM && echo \\\"killing -\$\$\\\" && kill -- -\$\$\" SIGINT SIGTERM EXIT; echo \"pid \$\$\" ; sleep 1; echo \"done\""
equiv with
a2)
equiv with
b2)
How does one construct those command-lines above, for boost.process??
If I copy/paste the above commands in bash, I get this output:
More easily readable, I basically want to have
/bin/bash
execute the following:Thanks!
The text was updated successfully, but these errors were encountered: