From 5dbbfd42881c5ed9610ee4cb807d2d801abcac4b Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 17 Jan 2011 23:12:24 -0800 Subject: [PATCH] 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. --- t/shelltest.od | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/t/shelltest.od b/t/shelltest.od index c3c9f7f..d5eda7f 100644 --- a/t/shelltest.od +++ b/t/shelltest.od @@ -259,4 +259,15 @@ test -e shellfile || fail 99 # http://www.gnu.org/software/hello/manual/autoconf/Limitations-of-Usual-Tools.html 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