projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune.
[feisty_meow.git]
/
scripts
/
core
/
functions.sh
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index 16c4473931071d695e23ed0952345fb9e2b5d782..ab883d9d6e6bce61ced2ffb806a2d352595262e3 100644
(file)
--- 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"
# 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" \
for i in "${patterns[@]}"; do
PIDS_SOUGHT+=($(cat $PID_DUMP \
| grep -i "$i" \
@@
-137,13
+138,13
@@
if [ -z "$skip_all" ]; then
echo "psa finds processes by pattern, but there was no pattern on the command line."
return 1
fi
echo "psa finds processes by pattern, but there was no pattern on the command line."
return 1
fi
- p=$(psfind "$
1
")
+ p=$(psfind "$
{@}
")
if [ -z "$p" ]; then
# no matches.
return 0
fi
echo ""
if [ -z "$p" ]; then
# no matches.
return 0
fi
echo ""
- echo "Processes
containing \"$1\"
..."
+ echo "Processes
matching ${@}
..."
echo ""
if [ -n "$IS_DARWIN" ]; then
unset fuzil_sentinel
echo ""
if [ -n "$IS_DARWIN" ]; then
unset fuzil_sentinel