2 ######################################################
4 # Test that whatnow's "ls" copes with directory names
5 # which have spaces and quotes in them (see bug #23319)
7 ######################################################
10 SPDIR="$MH_TEST_DIR/foo's bar"
16 expectederr=$MH_TEST_DIR/$$.expectederr
17 actualerr=$MH_TEST_DIR/$$.actualerr
18 expected=$MH_TEST_DIR/$$.expected
19 actual=$MH_TEST_DIR/$$.actual
26 cat > $expectederr <<EOF
27 whatnow: whatnow is deprecated. Consider switching to whatnow2.
30 # create a draft message
33 # NB use of sort as the order of output of ls is not guaranteed
34 echo 'ls' | whatnow -prompt '' 2> "$actualerr" | sort > "$actual"
36 diff -u $expectederr $actualerr
37 diff -u $expected $actual