]> diplodocus.org Git - nmh/blobdiff - test/whatnow/test-cd
Add support for outputing a few (limited) terminal attributes in format
[nmh] / test / whatnow / test-cd
index 48389cbf02174145c91c797e2dc7b5b83169ba27..bfa6f4ee4d560e88713ff181e74e1389d69601fe 100755 (executable)
@@ -32,7 +32,7 @@ actual=$MH_TEST_DIR/$$.actual
 #
 
 set +e
-whatnowtest=`echo cd | TERM=dumb whatnow -prompt ''`
+whatnowtest=`echo cd | TERM=dumb run_prog whatnow -prompt ''`
 set -e
 
 case ${whatnowtest} in
@@ -58,7 +58,8 @@ EOF
 # ||true to ignore whatnow's exit status
 # watch the quoting -- shell and printf and then the shell run inside whatnow
 printf 'cd %s/foo\\'"'"'s\\ bar\npwd\n' "$MH_TEST_DIR" | \
-  TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
+  TERM=dumb run_prog whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || \
+  true
 
 check "$expectederr" "$actualerr"
 check "$expected" "$actual"