From ea0572cf2cf4980555c7f1dc4cbf9c0962041a6c Mon Sep 17 00:00:00 2001 From: Tom Vincent Date: Thu, 31 Oct 2013 16:05:45 +0000 Subject: Prefer bash parameter expansion over basename(1) --- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/password-store.sh b/src/password-store.sh index 84ac2d6..e9ba4f0 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -158,7 +158,7 @@ SHRED="shred -f -z" # END Platform definable # -program="$(basename "$0")" +program="${0##*/}" command="$1" if is_command "$command"; then shift -- cgit v1.2.3