[pass] [PATCH 1/2] Prefer bash parameter expansion over basneme(1)
Tom Vincent
pass at tlvince.com
Sun May 26 19:36:48 CEST 2013
A small optimisation if you're keeping the bash dependency
---
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 e080627..51d7270 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.2.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20130527/eeef5251/attachment.html>
More information about the Password-Store
mailing list