|
From: | Roman Rakus |
Subject: | Re: conditional aliases are broken |
Date: | Fri, 19 Aug 2011 12:38:49 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110707 Thunderbird/5.0 |
On 08/18/2011 07:57 PM, Eric Blake wrote:
Interesting. I would expect that "\\n" in printf will print out `\n'. Good to know.On 08/18/2011 08:53 AM, Roman Rakus wrote:On 08/18/2011 04:38 PM, Sam Steingold wrote:how do I write a function that would print the same as $ \ls | catf3(){ printf "%s\n" "$@"; }"\n" looks funny in shell; even though POSIX requires that "\n" does not treat the \ as an escape but as a literal character, stylistically, I prefer writing "\\n" or '\n' to make it clear that I intended a literal backslash.
RR
[Prev in Thread] | Current Thread | [Next in Thread] |