2 ######################################################
4 # Test that whatnow's "ls" copes with directory names
5 # which have spaces in them (see bug #23319)
7 ######################################################
14 # whatnow's attach stuff needs a draft to work on
15 # cp "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/draft"
16 comp +inbox 1 -whatnow true
18 expectederr=$MH_TEST_DIR/$$.expectederr
19 actualerr=$MH_TEST_DIR/$$.actualerr
20 expected=$MH_TEST_DIR/$$.expected
21 actual=$MH_TEST_DIR/$$.actual
23 rm -f $expected $expectederr $actual $actualerr
24 touch $expected $expectederr $actual $actualerr
30 # whatnow's exit status is always 1 so that is not a failure
32 echo "attach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
33 echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
34 echo "detach 1" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
35 echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
38 diff -u $expectederr $actualerr
39 <$actual sed 's,/.*/,/XXX/,' >$actual.clean
40 diff -u $expected $actual.clean