Commit Graph
12 Commits
Author SHA1 Message Date
John Polstra 426ca56de1 Merge from main branch: back out warnx() "fix", which broke sh. 1997-11-18 15:24:46 +00:00
John Polstra 14791dcf9e Merge from main branch 1.9 -> 1.10: Fix extra args to warnx(). 1997-11-18 05:46:23 +00:00
Jordan K. Hubbard 1ae21ad605 MFC: Boy, this is fun! [NOT] :) 1997-09-15 10:19:57 +00:00
Warner Losh 228f50a90c MFC: getopt returns -1 not EOF 1997-08-29 05:30:15 +00:00
Philippe Charnier 2c7ce2c0b1 MFC: Op arguments -> Op Ar arguments 1997-08-05 06:34:24 +00:00
Steve Price e6068a345f Remove annoying -Wall warning. 1996-10-06 02:40:39 +00:00
Peter Wemm d72f654c65 When used as a shell builtin, this program decoded a subset of arguments
known to printf(3) and then used printf() to format it... The only
problem what the #define printf out1fmt.  The code was behaving differently
when run as a shell builtin since out1fmt() isn't printf(3).

Simple hack.  Print to a buffer and fputs (also #defined for sh) the
result.  This should fix the printf builtin problem in PR#1673, rather
than leaving the call commented out.  (printf.o was being statically linked
in anyway, we might as well use it)
1996-10-01 04:56:59 +00:00
Mike Pritchard 457788f888 Correctly match the format flags and their descriptions.
Submitted by:	Dave Glowacki <[email protected]>
1996-04-09 21:46:24 +00:00
Joerg Wunsch d9f9371008 Move out some of the shell builtin bogosity from printf's source to
sh's builtin/bltin.h.
1995-12-10 15:40:42 +00:00
Rodney W. Grimes 7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Joerg Wunsch d867cefdcb Make the syntax checks for the format string more strict. The string
"%8*s" is no longer considered to be a valid format description.

This closes PR bin/386.
1995-05-07 07:00:18 +00:00
Rodney W. Grimes 9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00