Environment passing bug?

Eric Blake eblake@redhat.com
Tue Feb 21 20:37:00 GMT 2012


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20120221/8934c66a/attachment.sig>


More information about the Cygwin mailing list