Remove cmdline dependency on base64 and perl

This commit is contained in:
*Kim Zick (rummik)
2018-12-28 19:37:33 -05:00
parent 15cabbb930
commit 913f693f80
2 changed files with 2 additions and 5 deletions

View File

@ -13,7 +13,7 @@ exit_safely_if_empty_ppid() {
full_command() {
[[ -z "$CPID" ]] && exit 0
cat /proc/${CPID}/cmdline | perl -ne 'print join(" ", map quotemeta, split(/\000/))' | base64 -w0
cat /proc/${CPID}/cmdline | xargs -0 printf "%q "
}
main() {