[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] [PATCH 3/3] Behave correctly in the absence of non-standard envi
From: |
Trent W\. Buck |
Subject: |
[STUMP] [PATCH 3/3] Behave correctly in the absence of non-standard environment variable $TEMP. |
Date: |
Thu, 13 Dec 2007 06:10:20 +1100 |
---
contrib/stumpish | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/contrib/stumpish b/contrib/stumpish
index dbe2dfd..93eaf71 100755
--- a/contrib/stumpish
+++ b/contrib/stumpish
@@ -104,7 +104,9 @@ else
then
if [ $READLINE == yes ] && type rlwrap &>/dev/null
then
- COMMANDS="$TEMP/stumpish.commands.$$"
+ ## Note: $TEMP is not conventional; it is left
+ ## here purely 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
rm -f "$COMMANDS"
--
debian.1.5.3.7.1-dirty