Permalink
Browse files

[rc] handle spaces in sourcing

  • Loading branch information...
1 parent 43d560c commit 198db727b4e8c481e7ff7a1592d72a2043eea446 @majnemer committed Nov 10, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 bashrc
  2. +2 −2 kshrc
View
@@ -6,13 +6,13 @@
# common shell utils
if [ -d "${HOME}/.commonsh" ] ; then
for file in "${HOME}"/.commonsh/* ; do
- . $file
+ . "${file}"
done
fi
# extras
if [ -d "${HOME}/.bash" ] ; then
for file in "${HOME}"/.bash/* ; do
- . $file
+ . "${file}"
done
fi
View
@@ -1,11 +1,11 @@
if [ -d "${HOME}/.commonsh" ] ; then
for file in "${HOME}"/.commonsh/* ; do
- . $file
+ . "${file}"
done
fi
if [ -d "${HOME}/.ksh" ] ; then
for file in "${HOME}"/.ksh/* ; do
- . $file
+ . "${file}"
done
fi

0 comments on commit 198db72

Please sign in to comment.