Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Slightly improve printf %s
- X-seq: zsh-workers 21579
- From: "Thorsten Dahlheimer" <tdahlheim@xxxxxxx>
- To: <zsh-workers@xxxxxxxxxx>
- Subject: PATCH: Slightly improve printf %s
- Date: Mon, 8 Aug 2005 20:21:28 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This change makes it possible to print strings containing NULs with
printf '%s', by sharing the code for the %b specifier.
After I made this change, the test suite uncovered a bug (which I
introduced) in the handling of %b (and now %s) when no argument is
left, so the patch includes a fix for that, too.
Regards,
Thorsten Dahlheimer
Attachment:
printf_s.patch
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author