]>
diplodocus.org Git - nmh/blob - test/tests/whatnow/test-ls
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
29 # NB use of sort as the order of output of ls is not guaranteed
30 echo 'ls' | whatnow
-noedit -prompt '' 2> "$actualerr" | sort > "$actual"
32 diff -u $expectederr $actualerr
33 diff -u $expected $actual