From 109a51e27c225cc4494f01e2c99ee55f3c18d67c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Wei=C3=9Fl?= Date: Tue, 30 Nov 2010 15:19:01 +0100 Subject: [PATCH] replace type -p with type --- muttjump | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muttjump b/muttjump index 50ca34a..cb7e4fb 100755 --- a/muttjump +++ b/muttjump @@ -40,7 +40,7 @@ MUTTJUMP_MULTI_SCREEN_MODE=${MUTTJUMP_MULTI_SCREEN_MODE:-no} MUTTJUMP_SCREEN_SESSION=${MUTTJUMP_SCREEN_SESSION:-} # function to create the screen window name from the full path of the mailbox -if ! type -p MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE >/dev/null ; then +if ! type MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE >/dev/null 2>&1 ; then function MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE () { basename "$1" } @@ -65,7 +65,7 @@ function quote () { } function is_callable () { - type -p $1 >/dev/null + type $1 >/dev/null 2>&1 } # Check command-line arguments and STDIN -- 2.30.2