]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-textcharset
Migrated show_content_aux2() to argsplit().
[nmh] / test / mhshow / test-textcharset
index 4768808a706618592851aad936d2744e9485f08d..eafb6ad085d26a400b57cd3c475505e16e3e1ea0 100755 (executable)
@@ -117,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