projects
/
muttjump
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fbad779
)
replace type -p with type
author
Johannes Weißl
<jargon@molb.org>
Tue, 30 Nov 2010 14:19:01 +0000
(15:19 +0100)
committer
Johannes Weißl
<jargon@molb.org>
Tue, 30 Nov 2010 14:19:01 +0000
(15:19 +0100)
muttjump
patch
|
blob
|
history
diff --git
a/muttjump
b/muttjump
index 50ca34a63434997c00e61a573660a1929078c725..cb7e4fbb3a726a1f163c73d7d9aa1ca8eb8513c5 100755
(executable)
--- 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
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"
}
function MUTTJUMP_SCREEN_WINDOW_NAME_MANGLE () {
basename "$1"
}
@@
-65,7
+65,7
@@
function quote () {
}
function is_callable () {
}
function is_callable () {
- type
-p $1 >/dev/null
+ type
$1 >/dev/null 2>&1
}
# Check command-line arguments and STDIN
}
# Check command-line arguments and STDIN
Benjamin Mako Hill
||
Want to submit a patch?