From: Johannes Weißl Date: Tue, 30 Nov 2010 14:19:01 +0000 (+0100) Subject: replace type -p with type X-Git-Url: https://projects.mako.cc/source/muttjump/commitdiff_plain/109a51e27c225cc4494f01e2c99ee55f3c18d67c?hp=fbad77933cca088c24bda6321f95cef5dd081617 replace type -p with type --- 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