X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=8a2f35865a36c59cad49bda5ef6c63af8c465cf9;hb=a05244354ee2e6a57751269b383abf2c181054c3;hp=16c4473931071d695e23ed0952345fb9e2b5d782;hpb=03c66529aa1ae2c83572bb02609edd60e233552e;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 16c44739..8a2f3586 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" \