EOF
cat > $expectederr <<EOF
+whatnow: whatnow is deprecated. Consider switching to whatnow2.
EOF
+# create a draft message
+comp -whatnow true
+
# NB use of sort as the order of output of ls is not guaranteed
-echo 'ls' | whatnow -noedit -prompt '' 2> "$actualerr" | sort > "$actual"
+echo 'ls' | whatnow -prompt '' 2> "$actualerr" | sort > "$actual"
diff -u $expectederr $actualerr
diff -u $expected $actual