bug-bash
[Top][All Lists]
Advanced

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

Re: RFE: printf '%(fmt)T' prints current time by default


From: Dan Douglas
Subject: Re: RFE: printf '%(fmt)T' prints current time by default
Date: Fri, 14 Dec 2012 11:03:14 -0600
User-agent: KMail/4.8.3 (Linux/3.4.6-pf+; KDE/4.8.3; x86_64; ; )

On Friday, December 14, 2012 09:57:11 AM Chet Ramey wrote:
> > > I think the ksh behavior is makes more sense so can we use the current 
> > > time
> > > as the default?
> > > 
> > > -Clark
> > 
> > I agree that a null or empty argument as equivalent to -1 is a better 
> > default. 
> > "0" is identical to the current behavior for empty/unset, so no 
> > functionality 
> > is lost.
> 
> That's not unreasonable.  The current default is what Posix specifies for
> printf:
> 
> Any extra c or s conversion specifiers shall be evaluated as if a null
> string argument were supplied; other extra conversion specifications
> shall be evaluated as if a zero argument were supplied. 

Ooh ok... hrm I didn't consider it's actually consistent with everything else 
this way. 
-- 
Dan Douglas



reply via email to

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