2 ######################################################
4 # Test that whatnow's "ls" copes with directory names
5 # which have spaces in them (see bug #23319)
7 ######################################################
11 if test -z "${MH_OBJ_DIR}"; then
12 srcdir=`dirname "$0"`/../..
13 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
16 . "$MH_OBJ_DIR/test/common.sh"
22 testname_quoted="baz\'s\ boz"
24 # whatnow's attach stuff needs a draft to work on
25 cp "$MH_TEST_DIR/Mail/inbox/1" "$MH_TEST_DIR/Mail/draft"
27 expectederr=$MH_TEST_DIR/$$.expectederr
28 actualerr=$MH_TEST_DIR/$$.actualerr
29 expected=$MH_TEST_DIR/$$.expected
30 actual=$MH_TEST_DIR/$$.actual
32 rm -f $expected $expectederr $actual $actualerr
33 touch $expected $expectederr $actual $actualerr
39 # whatnow's exit status is always 1 so that is not a failure
41 echo "attach $testname_quoted" | \
42 whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
43 echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
44 echo "detach $testname_quoted" | \
45 whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
46 echo "alist" | whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual
49 check "$expectederr" "$actualerr"
50 check "$expected" "$actual"
52 test ${failed:-0} -eq 0 && rm "$testname"