]> diplodocus.org Git - nmh/commitdiff
mhshow/test-charset: Protect question mark from shell globbing.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 25 Nov 2017 15:42:09 +0000 (15:42 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 25 Nov 2017 15:47:17 +0000 (15:47 +0000)
test/mhshow/test-charset

index 013499a..de10e96 100755 (executable)
@@ -28,7 +28,7 @@ else
     #### The GNU iconv library normalises charset names by eliding '?', along
     #### with some other characters.  The iconv library used on FreeBSD/NetBSD
     #### doesn't.
-    printf x | iconv -f ?UTF-8 -t UTF-8 >/dev/null 2>&1  &&
+    printf x | iconv -f '?UTF-8' -t UTF-8 >/dev/null 2>&1  &&
         iconv_elides_question_marks=1
 fi