|
From: | Padraig Brady |
Subject: | Re: printf \xNNN |
Date: | Wed Nov 6 11:09:03 2002 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 |
Jim Meyering wrote:
Padraig Brady <address@hidden> wrote:Why [ :-) ] does printf take up to 3 hex digits? What's wrong with 2 (lastest bash just does 2). $ /usr/bin/printf "\xf73" s $ printf "\xf73" ÷3 printf from sh-utils just ignored the first hex digit?Thank you for the report! That looks like a bug. It is at least 10 years old, since that code was there for my
Cool, I think bash used your code also, since it had this bug up and including the version shipped with RH7.2 I think. Anyway I thought there was some esoteric reason rather than a bug since it was explicitly mentioned in the docs also? Thanks, Pádraig
[Prev in Thread] | Current Thread | [Next in Thread] |