[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] [Patch] [stumpish] Self-reference fixes.
From: |
38a938c2 |
Subject: |
[STUMP] [Patch] [stumpish] Self-reference fixes. |
Date: |
Sun, 24 Aug 2008 23:47:39 +0400 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080804) |
It's better to support renaming of the main executable, or its being
called via absolute path.
>From 74d93e5cd9d816ca4501c1e784d36510b3b20eeb Mon Sep 17 00:00:00 2001
From: 38a938c2 <address@hidden>
Date: Sun, 24 Aug 2008 23:30:48 +0400
Subject: [PATCH] Corrected self-references in stumpish
---
contrib/stumpish | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/stumpish b/contrib/stumpish
index 1b425f1..1d48bb4 100755
--- a/contrib/stumpish
+++ b/contrib/stumpish
@@ -73,7 +73,7 @@ send_cmd ()
usage ()
{
cat <<EOF
-Usage: stumpish [[-e] command [args...]]
+Usage: "$0" [[-e] command [args...]]
StumpIsh is the StumpWM shell. Use it to interact a running StumpWM
instance. When run from a terminal with no arguments, stumpish
@@ -87,7 +87,7 @@ the first is considered the name of the command to execute
and the
remainder is concatenated to form the argument.
Example:
- echo '(group-windows (current-group))' | stumpish eval
+ echo '(group-windows (current-group))' | "$0" eval
EOF
exit 0;
}
@@ -127,7 +127,7 @@ else
# for backwards compatibility.
COMMANDS="${TEMP:-${TEMPDIR:-/var/tmp}}/stumpish.commands.$$"
echo `send_cmd "commands"` | sed 's/[[:space:]]\+/\n/g' | sort >
"$COMMANDS"
- rlwrap -f "$COMMANDS" stumpish -r
+ rlwrap -f "$COMMANDS" "$0" -r
rm -f "$COMMANDS"
exit
fi
--
1.6.0
- [STUMP] [Patch] [stumpish] Self-reference fixes.,
38a938c2 <=