chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dot/zshrc: Turn off `KSH_GLOB'.
[profile]
/
bin
/
mdw-conf
diff --git
a/bin/mdw-conf
b/bin/mdw-conf
index 86da2caf86b2fdbd76d8af59e8fb88fe3517772c..4ee6d775df10d73af6d7f7b32e57f8efcca61933 100755
(executable)
--- a/
bin/mdw-conf
+++ b/
bin/mdw-conf
@@
-4,7
+4,7
@@
set -e
var=${1?var}
val=$(
sed -n "
- /^[ ]*$var[ ]*=[ ]*\(
\|.*[^ ]\)[
]*$/ {
+ /^[ ]*$var[ ]*=[ ]*\(
.*[^ ]\)\{0,1\}[
]*$/ {
s//\1/; p; q
}
" ${MDWCONF-$HOME/.mdw.conf})