chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5598c
)
mdw-conf: Prevent double-/ when doing ~-substitutions.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 29 Apr 2008 17:12:14 +0000
(18:12 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 29 Apr 2008 17:12:14 +0000
(18:12 +0100)
mdw-conf
patch
|
blob
|
blame
|
history
diff --git
a/mdw-conf
b/mdw-conf
index b0e33b6d2db509ef36815b4c26742830a1ac0873..86da2caf86b2fdbd76d8af59e8fb88fe3517772c 100755
(executable)
--- a/
mdw-conf
+++ b/
mdw-conf
@@
-11,6
+11,6
@@
val=$(
case "$val,$2" in
"","") echo >&2 "$0: configuration variable $var not found."; exit 1 ;;
"",*) val=$2 ;;
- "~/"*) val=$HOME/${val#\~} ;;
+ "~/"*) val=$HOME/${val#\~
/
} ;;
esac
echo "$val"