From: Chris Koeritz Date: Tue, 11 Mar 2014 22:43:47 +0000 (-0400) Subject: trying to get psfind working for windoze again. X-Git-Tag: 2.140.90~809 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=9ee7dffcc391a9f8660c26a7a7138c831abb4b09;p=feisty_meow.git trying to get psfind working for windoze again. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 16c44739..9740d2a1 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -99,9 +99,10 @@ if [ -z "$skip_all" ]; then # we 'type' the file to get rid of the unicode result from wmic. cmd $flag type "$tmppid" >$PID_DUMP \rm "$tmppid" - local CR=' -' # embedded carriage return. - local appropriate_pattern="s/^.* *\([0-9][0-9]*\)[ $CR]*\$/\1/p" +# local CR=' +#' # embedded carriage return. +# local appropriate_pattern="s/^.* *\([0-9][0-9]*\)[ $CR]*\$/\1/p" + local appropriate_pattern="s/^.* *\([0-9][0-9]*\)*\$/\1/p" for i in "${patterns[@]}"; do PIDS_SOUGHT+=($(cat $PID_DUMP \ | grep -i "$i" \