stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[STUMP] [PATCH 2/3] Behave correctly in the absence of rlwrap.


From: Trent W\. Buck
Subject: [STUMP] [PATCH 2/3] Behave correctly in the absence of rlwrap.
Date: Thu, 13 Dec 2007 06:10:19 +1100

---
 contrib/stumpish |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/stumpish b/contrib/stumpish
index 35e10ba..dbe2dfd 100755
--- a/contrib/stumpish
+++ b/contrib/stumpish
@@ -102,7 +102,7 @@ then
 else
        if [ -t 0 ]
        then
-               if [ $READLINE == yes ] && [ -x `which rlwrap` ]
+               if [ $READLINE == yes ] && type rlwrap &>/dev/null
                then
                        COMMANDS="$TEMP/stumpish.commands.$$"
                        echo `send_cmd "commands"` | sed 's/[[:space:]]\+/\n/g' 
| sort > "$COMMANDS"
-- 
debian.1.5.3.7.1-dirty




reply via email to

[Prev in Thread] Current Thread [Next in Thread]