[pass] [PATCH 1/2] Prefer bash parameter expansion over basename(1)
Tom Vincent
pass at tlvince.com
Thu Oct 31 17:05:45 CET 2013
---
src/password-store.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/password-store.sh b/src/password-store.sh
index 2500253..2740d8e 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -126,7 +126,7 @@ GETOPT="getopt"
# END Platform definable
#
-program="$(basename "$0")"
+program="${0##*/}"
command="$1"
if is_command "$command"; then
shift
--
1.8.4.1
More information about the Password-Store
mailing list