]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/process-util: add mode where posix shell escape is used for quoting
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Mar 2021 23:10:02 +0000 (00:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 May 2021 11:59:23 +0000 (13:59 +0200)
commit99009ed0f490b89fa14ca323a9ffb9b963980822
treedc1e6b0f6eb506f9bca8225468830268c47146db
parent07468a16e46dba9da8b9c8593e0c2ee5bfec3c69
basic/process-util: add mode where posix shell escape is used for quoting

The new flag is not used, except in tests, so no functional change yet.

This way, the command as shown can be copied-and-pasted into the shell
in more cases. For simple cases, shell quoting with "" is enough. But
$'' is needed when there are control characters in the command.
src/basic/process-util.c
src/basic/process-util.h
src/test/test-process-util.c