From 1443c5655868a8f6fae18bb6e97498ca61f3ee1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Tue, 30 Nov 2010 02:48:55 +0100 Subject: [PATCH 1/1] is_callable: simpler solution --- muttjump | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/muttjump b/muttjump index 8170f4e..74f69d1 100755 --- a/muttjump +++ b/muttjump @@ -59,8 +59,7 @@ function quote () { } function is_callable () { - read cmd args <<<$1 - type -p $cmd >/dev/null + type -p $1 >/dev/null } # Check command-line arguments and STDIN -- 2.39.5