&gt; This patch makes zdump and zic print their own names in their --version<br>
&gt; output, in accordance with the GNU standards<br><br>Do the GNU standards call for the canonical name (for example, &quot;zic&quot;) or<br>for the name by which the command was invoked (as derived from the arguments to &quot;main&quot;)?<br>
<br>        --ado<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 4:47 PM, Joseph S. Myers <span dir="ltr">&lt;<a href="mailto:jsm@polyomino.org.uk" target="_blank">jsm@polyomino.org.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This patch makes zdump and zic print their own names in their --version<br>
output, in accordance with the GNU standards for what --version should<br>
print.  (tzselect already does print its name in --version output.)<br>
<br>
diff --git a/zdump.c b/zdump.c<br>
index 805267d..8b118ed 100644<br>
--- a/zdump.c<br>
+++ b/zdump.c<br>
@@ -309,7 +309,7 @@ main(int argc, char *argv[])<br>
        progname = argv[0];<br>
        for (i = 1; i &lt; argc; ++i)<br>
                if (strcmp(argv[i], &quot;--version&quot;) == 0) {<br>
-                       (void) printf(&quot;%s\n&quot;, TZVERSION);<br>
+                       (void) printf(&quot;zdump %s\n&quot;, TZVERSION);<br>
                        exit(EXIT_SUCCESS);<br>
                } else if (strcmp(argv[i], &quot;--help&quot;) == 0) {<br>
                        usage(stdout, EXIT_SUCCESS);<br>
diff --git a/zic.c b/zic.c<br>
index a9a54bb..428eaaa 100644<br>
--- a/zic.c<br>
+++ b/zic.c<br>
@@ -462,7 +462,7 @@ main(int argc, char **argv)<br>
        }<br>
        for (i = 1; i &lt; argc; ++i)<br>
                if (strcmp(argv[i], &quot;--version&quot;) == 0) {<br>
-                       (void) printf(&quot;%s\n&quot;, TZVERSION);<br>
+                       (void) printf(&quot;zic %s\n&quot;, TZVERSION);<br>
                        exit(EXIT_SUCCESS);<br>
                } else if (strcmp(argv[i], &quot;--help&quot;) == 0) {<br>
                        usage(stdout, EXIT_SUCCESS);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Joseph S. Myers<br>
<a href="mailto:joseph@codesourcery.com">joseph@codesourcery.com</a><br>
</font></span></blockquote></div><br></div>