diff options
Diffstat (limited to 'init')
-rw-r--r-- | init | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" ;; |