summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init4
1 files changed, 2 insertions, 2 deletions
diff --git a/init b/init
index aa46c48..94db351 100644
--- a/init
+++ b/init
@@ -32,11 +32,11 @@ for cmd in ${CMDLINE}; do
single) ;;
# only export stuff that does work with ash :)
*=*) rhs="$(echo "${cmd}" | cut -d= -f2-)"
- cmd="$(echo "${cmd}" | cut -d= -f1 | sed 's|.|_|g')"
+ cmd="$(echo "${cmd}" | cut -d= -f1 | sed 's|\.|_|g')"
cmd="$(echo "${cmd}" | sed 's|-|_|g')=${rhs}"
(echo "${cmd}" | grep -qe '^[0-9]') || export "${cmd}"
;;
- *) cmd="$(echo "${cmd}" | sed 's|.|_|g')"
+ *) cmd="$(echo "${cmd}" | sed 's|\.|_|g')"
cmd="$(echo "${cmd}" | sed 's|-|_|g')"
(echo "${cmd}" | grep -qe '^[0-9]') || export "${cmd}=y"
;;