bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undocumented usage of printf?


From: Chet Ramey
Subject: Re: Undocumented usage of printf?
Date: Sat, 17 Apr 2010 23:26:18 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

On 4/15/10 10:21 AM, Clark J. Wang wrote:
> I saw a printf usage from a Linux forum's post:
> 
> # printf "%d\n" "'a"
> 97
> #
> 
> It's really cool but I found no info in bash's manual. Are there any other
> undocumented interesting features? :)

They're in Posix.  Thanks for pointing out the omission; I will add
descriptions for the next release of bash.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]