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 cat > $expectederr <<EOF
31 whatnow: whatnow is deprecated. Consider switching to whatnow2.
32 whatnow: whatnow is deprecated. Consider switching to whatnow2.
33 whatnow: whatnow is deprecated. Consider switching to whatnow2.
34 whatnow: whatnow is deprecated. Consider switching to whatnow2.
37 # whatnow's exit status is always 1 so that is not a failure
39 echo "attach baz\\'s\\ boz" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
40 echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
41 echo "detach 1" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
42 echo "alist" | whatnow -editor true -prompt '' 2>> $actualerr >> $actual
45 diff -u $expectederr $actualerr
46 <$actual sed 's,/.*/,/XXX/,' >$actual.clean
47 diff -u $expected $actual.clean