#!/bin/sh
######################################################
#
-# Test that whatnow's "ls" copes with directory names
+# Test that whatnow's "cd" copes with directory names
# which have spaces and quotes in them (see bug #23319)
#
######################################################
cat > $expectederr <<EOF
EOF
+# create a draft message
+comp -whatnow true
+
# ||true to ignore whatnow's exit status
# watch the quoting -- shell and printf and then the shell run inside whatnow
-printf "cd $MH_TEST_DIR/foo\\\\'s\\\\ bar\npwd\n" | whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
+printf "cd $MH_TEST_DIR/foo\\\\'s\\\\ bar\npwd\n" | whatnow -prompt '' 2> "$actualerr" > "$actual" || true
diff -u $expectederr $actualerr
diff -u $expected $actual