diff --git a/helper_lib.sh b/helper_lib.sh index 12276e2..7577816 100644 --- a/helper_lib.sh +++ b/helper_lib.sh @@ -41,8 +41,8 @@ contains() { get_command_line_args() { PROC="$1" - for PID in `pgrep -x -o $PROC` + for PID in $(pgrep -x -o "$PROC") do - cat /proc/$PID/cmdline | tr "\0" " " + tr "\0" " " < /proc/"$PID"/cmdline done }