2 ######################################################
4 # Test that whatnow's "ls" copes with directory names
5 # which have spaces in them (see bug #23319)
7 ######################################################
9 if test -z "${MH_OBJ_DIR}"; then
10 srcdir=`dirname $0`/../..
11 MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
14 . "$MH_OBJ_DIR/test/common.sh"
23 # whatnow's attach stuff needs a draft to work on
24 cp "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/draft"
26 expectederr=$MH_TEST_DIR/$$.expectederr
27 actualerr=$MH_TEST_DIR/$$.actualerr
28 expected=$MH_TEST_DIR/$$.expected
29 actual=$MH_TEST_DIR/$$.actual
31 rm -f $expected $expectederr $actual $actualerr
32 touch $expected $expectederr $actual $actualerr
38 # whatnow's exit status is always 1 so that is not a failure
40 echo "attach baz\\'s\\ boz" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
41 echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
42 echo "detach baz\\'s\\ boz" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
43 echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
46 diff -u $expectederr $actualerr || exit 1
47 diff -u $expected $actual