HCoop
/
hcoop
/
zz_old
/
misc
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d8d03ff
)
run-in-pagsh: Use $HOME rather than "~" so that paths can be quoted
author
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Mon, 29 Oct 2007 02:21:41 +0000
(22:21 -0400)
committer
mwolson_admin
<mwolson_admin@deleuze.hcoop.net>
Mon, 29 Oct 2007 02:21:41 +0000
(22:21 -0400)
Otherwise, several utilities like rm and test can't resolve "~" properly.
Sigh.
run-in-pagsh
patch
|
blob
|
blame
|
history
diff --git
a/run-in-pagsh
b/run-in-pagsh
index
5a54629
..
3d4f6cb
100755
(executable)
--- a/
run-in-pagsh
+++ b/
run-in-pagsh
@@
-22,13
+22,13
@@
if test -z "$2"; then
echo "Error: not enough arguments."
echo "Usage: run-in-pagsh name command [arguments] ..."
exit 1
-elif test ! -d "
~
/.run"; then
+elif test ! -d "
$HOME
/.run"; then
echo "Error: the ~/.run directory must exist before running this script."
exit 1
fi
# Use a different PID file for each program.
-K5PID=
~
/.run/$1.pid
+K5PID=
$HOME
/.run/$1.pid
# The command to run.
shift