From df898f94bb0b2a552ce4c09e42dc29673eedc179 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 17 Jan 2023 10:16:35 -0700 Subject: emacsclient wrapper: check for getopt(1) Not necessary because if the attempt to invoke getopt(1) fails we call the defer function anyway, but this has documentation value. --- bin/emacsclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/emacsclient b/bin/emacsclient index 82d05976..a8268fd0 100755 --- a/bin/emacsclient +++ b/bin/emacsclient @@ -64,7 +64,7 @@ defer () { [ -n "$BASH_VERSION" ] \ || { command -v bash >/dev/null && exec bash "$0" "$@" || defer "$@"; } -for cmd in flock inotifywait pwdx ss; do +for cmd in getopt flock inotifywait pwdx ss; do command -v $cmd >/dev/null || defer "$@" done -- cgit v1.2.3