made psa support multiple search patterns. psfind already did.
authorChris Koeritz <fred@gruntose.com>
Sun, 22 Jun 2014 14:50:55 +0000 (10:50 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 22 Jun 2014 14:50:55 +0000 (10:50 -0400)
scripts/core/functions.sh

index 8a2f35865a36c59cad49bda5ef6c63af8c465cf9..ab883d9d6e6bce61ced2ffb806a2d352595262e3 100644 (file)
@@ -138,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
-    p=$(psfind "$1")
+    p=$(psfind "${@}")
     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