~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
b0e33b6
..
86da2ca
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"