From owner-cvs-all Mon Apr 22 19:56:20 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1374837B41C; Mon, 22 Apr 2002 19:56:17 -0700 (PDT) Received: (from jmallett@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3N2uH320431; Mon, 22 Apr 2002 19:56:17 -0700 (PDT) (envelope-from jmallett) Message-Id: <200204230256.g3N2uH320431@freefall.freebsd.org> From: "J. Mallett" Date: Mon, 22 Apr 2002 19:56:16 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/printf printf.1 printf.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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