Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Printf builtin missing v flag support



On Jan 1, 10:26pm, Sebastian Gniazdowski wrote:
}
} Will this work for -x and -X?

No, it doesn't.  It's mainly for "printf -v ..."; I only enabled it
for plain "print" as an afterthought.  "print -v" joins the literal
arguments into a string and stores that in the variable.

To make it work with -x, -X, -C, etc. would require moving the memstream
code to the top of the function, plus some related fiddling around later.



Messages sorted by: Reverse Date, Date, Thread, Author