On 7 March 2012 12:40, Stefan Hajnoczi <stefa...@gmail.com> wrote: >> +printf "# Configured with:" >> config.log >> +printf " '%s'" "$0" "$@" >> config.log > > You use an interesting feature of printf(1)- it applies the (short) > format string as long as there are arguments. I checked that this is > in the specification: > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html
Yes, I had to look up the spec to figure out why it worked too :-) -- PMM