title: How to force decimal interpretation of printf's parameter in Bash instead of octal
body: <p>I am formatting numbers in a bash script with printf</p>
  
  <pre><code>printf "%04d" $input   # four digits width with leading zeros if shorter
  </code></pre>
  
  <p>If <code>input="011"</code> printf assumes the value is octal and returns <code>0009</code> instead of <code>0011</code>.</p>
  
  <p>Is it possible to force printf to assume all values are decimal?</p>