projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In test-post-common.sh and test-mhmail, wait for fakesmtp to start
[mmh]
/
test
/
whatnow
/
test-cd
diff --git
a/test/whatnow/test-cd
b/test/whatnow/test-cd
index
f7f7bc9
..
48389cb
100755
(executable)
--- a/
test/whatnow/test-cd
+++ b/
test/whatnow/test-cd
@@
-32,24
+32,24
@@
actual=$MH_TEST_DIR/$$.actual
#
set +e
#
set +e
-whatnowtest="$(echo cd | TERM=dumb whatnow -prompt '')"
+whatnowtest=`echo cd | TERM=dumb whatnow -prompt ''`
set -e
set -e
-case "${whatnowtest}" in
+case ${whatnowtest} in
cd) cat > "$expected" <<EOF
cd ${MH_TEST_DIR}/foo\'s\ bar
pwd
$SPDIR
EOF
cd) cat > "$expected" <<EOF
cd ${MH_TEST_DIR}/foo\'s\ bar
pwd
$SPDIR
EOF
- break;;
+ ;;
"") cat > "$expected" <<EOF
$SPDIR
EOF
"") cat > "$expected" <<EOF
$SPDIR
EOF
- break;;
+ ;;
*) echo "Unknown response to whatnow readline test"
echo "Response is: ${whatnowtest}"
exit 1
*) echo "Unknown response to whatnow readline test"
echo "Response is: ${whatnowtest}"
exit 1
- break;;
+ ;;
esac
cat > $expectederr <<EOF
esac
cat > $expectederr <<EOF
@@
-57,7
+57,7
@@
EOF
# ||true to ignore whatnow's exit status
# watch the quoting -- shell and printf and then the shell run inside whatnow
# ||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" | \
+printf 'cd %s/foo\\'"'"'s\\ bar\npwd\n' "$MH_TEST_DIR" | \
TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
check "$expectederr" "$actualerr"
TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" > "$actual" || true
check "$expectederr" "$actualerr"