Date: Mon, 22 Apr 2002 19:56:16 -0700 (PDT) From: "J. Mallett" <jmallett@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/printf printf.1 printf.c Message-ID: <200204230256.g3N2uH320431@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jmallett 2002/04/22 19:56:16 PDT
Modified files:
usr.bin/printf printf.1 printf.c
Log:
- printf shouldn't bail out if a conversion fails, it should just keep
processing them.
- \c escape to immediately stop output (similar to echo's \c)
- \0NNN should be allowed for octal character escapes (instead of just \NNN)
- %b conversion, which is like %s but interprets \n \t etc. inside the
string is missing.
And I may not be any poet, but in lieu of an in-tree regression test:
ref5% ./printf '%s%b%b%c%s%d\n' 'PR' '\0072' '\t' '3' '56' 0x10
PR: 35616
Submitted by: tjr
MFC after: 1 week
Revision Changes Path
1.21 +27 -5 src/usr.bin/printf/printf.1
1.20 +66 -37 src/usr.bin/printf/printf.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204230256.g3N2uH320431>
