bug-bash
[Top][All Lists]
Advanced

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

Re: printf %q represents null argument as empty string.


From: Dan Douglas
Subject: Re: printf %q represents null argument as empty string.
Date: Sat, 12 Jan 2013 08:34:35 -0600
User-agent: KMail/4.8.3 (Linux/3.4.6-pf+; KDE/4.8.3; x86_64; ; )

On Friday, January 11, 2013 10:39:19 PM Dan Douglas wrote:
> On Saturday, January 12, 2013 02:35:34 AM John Kearney wrote:
> BTW, your wrappers won't work. A wrapper would need to implement format 

Hrmf I should have clarified that I only meant A complete printf wrapper would 
be difficult. A single-purpose workaround is perfectly fine. e.g.
printq() { ${1+printf %q "$@"}; }; ... which is probably something like what 
you meant. Sorry for the rant.

-- 
Dan Douglas



reply via email to

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