]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-textcharset
Removed leading "exec " inserted in show_content_aux2(), which
[nmh] / test / mhshow / test-textcharset
index 208d6c33dbb2d9b70e3e4a0e8446bc601670b93e..eafb6ad085d26a400b57cd3c475505e16e3e1ea0 100755 (executable)
@@ -16,9 +16,6 @@ fi
 
 setup_test
 
-#### Use ap from PATH.
-PATH=`mhparam libdir`:$PATH
-
 if test "$ICONV_ENABLED" -eq 0; then
   test_skip 'test-textcharset requires that nmh have been built with iconv'
 fi
@@ -120,7 +117,7 @@ check "$expected" "$actual"
 grep -v 'mhshow-show-text/plain:' "$MH" >"$MH.new"
 mv -f "$MH.new" "$MH"
 cat >>"$MH" <<'EOF'
-mhshow-show-text/plain: echo `ap -format '%(void(lit %{charset}))%<(nonnull)-I %(putstr)%>' 0`
+mhshow-show-text/plain: charset="%{charset}"; echo ${charset:+-I $charset}
 EOF
 
 # check expansion of embedded %{charset} with no text following