aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-24 10:45:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-24 10:45:31 +1300
commit632ef7bee71d0da688187f1207e7ab73b7d83e57 (patch)
treeffdad5247863750f6becbf1858c015607654adad
parentRemove unneeded extglob set (diff)
downloaddotfiles-632ef7bee71d0da688187f1207e7ab73b7d83e57.tar.gz
dotfiles-632ef7bee71d0da688187f1207e7ab73b7d83e57.zip
Add IFS= to read call for oldpwd.sh
-rw-r--r--sh/profile.d/oldpwd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/profile.d/oldpwd.sh b/sh/profile.d/oldpwd.sh
index 96786338..f1dc7746 100644
--- a/sh/profile.d/oldpwd.sh
+++ b/sh/profile.d/oldpwd.sh
@@ -1,6 +1,6 @@
# If we can read ~/.oldpwd, make its contents our OLDPWD
if [ -r "${OLDPWD_FILE:-$HOME/.oldpwd}" ] ; then
- read -r OLDPWD < "${OLDPWD_FILE:-$HOME/.oldpwd}"
+ IFS= read -r OLDPWD < "${OLDPWD_FILE:-$HOME/.oldpwd}"
export OLDPWD
fi