This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Environment passing bug?


On 02/21/2012 12:19 PM, Charles Wilson wrote:

> 
> ====== xp-64 ========
> $ printf "'%s'\n'%s'\n'%s'\n'%s'\n'%s'\n'%s'\n" "$TEMP" "$TMP" "$TMPDIR"

Side note:

You know, POSIX requires (and cygwin supports) a shorthand form of this:

printf "'%s'\n" "$TEMP" "TMP" "$TMPDIR"

That is, if you provide more arguments to printf than % specifiers, then
it wraps and reapplies the format string to the remaining arguments.

-- 
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]