<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic strange printf behaviour in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-printf-behaviour/m-p/2420009#M766419</link>
    <description>Under HP-UX B.10.20 running on a 9000/780 machine, the following command gives &lt;BR /&gt;strange results:&lt;BR /&gt;command:&lt;BR /&gt; /usr/bin/printf "%.2d\n" 08&lt;BR /&gt;result:&lt;BR /&gt; printf:  Error converting 08&lt;BR /&gt; 00&lt;BR /&gt;&lt;BR /&gt;The command &lt;BR /&gt; /usr/bin/printf "%.2d\n" 8&lt;BR /&gt;&lt;BR /&gt;runs fine. (result : 08 )&lt;BR /&gt;What's wrong ?</description>
    <pubDate>Mon, 20 Mar 2000 04:20:20 GMT</pubDate>
    <dc:creator>Uwe Steinhoff</dc:creator>
    <dc:date>2000-03-20T04:20:20Z</dc:date>
    <item>
      <title>strange printf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-printf-behaviour/m-p/2420009#M766419</link>
      <description>Under HP-UX B.10.20 running on a 9000/780 machine, the following command gives &lt;BR /&gt;strange results:&lt;BR /&gt;command:&lt;BR /&gt; /usr/bin/printf "%.2d\n" 08&lt;BR /&gt;result:&lt;BR /&gt; printf:  Error converting 08&lt;BR /&gt; 00&lt;BR /&gt;&lt;BR /&gt;The command &lt;BR /&gt; /usr/bin/printf "%.2d\n" 8&lt;BR /&gt;&lt;BR /&gt;runs fine. (result : 08 )&lt;BR /&gt;What's wrong ?</description>
      <pubDate>Mon, 20 Mar 2000 04:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-printf-behaviour/m-p/2420009#M766419</guid>
      <dc:creator>Uwe Steinhoff</dc:creator>
      <dc:date>2000-03-20T04:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: strange printf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strange-printf-behaviour/m-p/2420010#M766420</link>
      <description>The reason is the leading zero causes printf to &lt;BR /&gt;atempt to convert from Octal.&lt;BR /&gt;&lt;BR /&gt;/usr/bin/printf "%02d\n" 011&lt;BR /&gt;&lt;BR /&gt;results in a "09" being printed.</description>
      <pubDate>Mon, 20 Mar 2000 07:22:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strange-printf-behaviour/m-p/2420010#M766420</guid>
      <dc:creator>Tom Dawes-gamble_2</dc:creator>
      <dc:date>2000-03-20T07:22:15Z</dc:date>
    </item>
  </channel>
</rss>

