diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-10-05 13:48:52 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-10-05 13:49:23 (EDT) |
commit | 7817ebf3c7cd10c4db1c907ff334bf678ee53232 (patch) | |
tree | 1eb6d72b97ad3cf35673de3bdc309e32fb87d493 /lib/fd.sh | |
parent | 330c70e06f98665f17bf23dbfb6988c6367ded7b (diff) |
cmd/shell: Use session_exec()
Now command arguments are separated and escaped naturally.
For example, the following commands work:
$ sudo prokit shell $root printf 'arg: %s\n' foo bar
arg: foo
arg: bar
$ sudo prokit shell $root printf 'arg: %s\n' 'foo bar'
arg: foo bar
$ sudo prokit shell $root printf "'ello world\n"
'ello world
Diffstat (limited to 'lib/fd.sh')
0 files changed, 0 insertions, 0 deletions