shelltest: die if 'cd ~' can't handle spaces in $HOME.

This fails on ash, dash, and busybox sh (for now).  But it's kind of
important since $HOME often has spaces on Win32.  I hope dash will be fixed
relatively soon.

I downgraded it to a warning since on Unix, this probably isn't a problem.
This commit is contained in:
Avery Pennarun 2011-01-17 23:12:24 -08:00
commit 5dbbfd4288

View file

@ -259,4 +259,15 @@ test -e shellfile || fail 99
# http://www.gnu.org/software/hello/manual/autoconf/Limitations-of-Usual-Tools.html # http://www.gnu.org/software/hello/manual/autoconf/Limitations-of-Usual-Tools.html
rm -f || fail 110 rm -f || fail 110
# reported by singpolyma in busybox-w32's issue tracker
(
set -e
HOME="$PWD/space home dir"
rm -rf "$HOME"
mkdir "$HOME"
cd ~
cd ..
rmdir 'space home dir'
) || warn 111
exit $FAIL exit $FAIL