X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Ftests%2Fwhatnow%2Ftest-attach-detach;fp=test%2Ftests%2Fwhatnow%2Ftest-attach-detach;h=1a36d8d60d33c4f07dc4e06ac1674c774532f592;hb=e98f7f60095bceba1f32e448c421b3e862b728aa;hp=0000000000000000000000000000000000000000;hpb=a9d65cd81e8ca93af31086a136d1e3ade86ad8d2;p=mmh diff --git a/test/tests/whatnow/test-attach-detach b/test/tests/whatnow/test-attach-detach new file mode 100644 index 0000000..1a36d8d --- /dev/null +++ b/test/tests/whatnow/test-attach-detach @@ -0,0 +1,38 @@ +#!/bin/sh +###################################################### +# +# Test that whatnow's "ls" copes with directory names +# which have spaces in them (see bug #23319) +# +###################################################### + +set -e + +cd "$MH_TEST_DIR" +rm -f "baz's boz" +touch "baz's boz" +# whatnow's attach stuff needs a draft to work on +cp "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/draft" + +expectederr=$MH_TEST_DIR/$$.expectederr +actualerr=$MH_TEST_DIR/$$.actualerr +expected=$MH_TEST_DIR/$$.expected +actual=$MH_TEST_DIR/$$.actual + +rm -f $expected $expectederr $actual $actualerr +touch $expected $expectederr $actual $actualerr + +cat > $expected <> $actualerr >> $actual +echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual +echo "detach baz\\'s\\ boz" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual +echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual +set -e + +diff -u $expectederr $actualerr +diff -u $expected $actual