Commit Graph

13 Commits

Author SHA1 Message Date
jdp
40adb8f2ec Back out revision 1.10. It broke the build of sh, which compiles
this file with warnx() defined as a macro.
1997-11-18 15:23:23 +00:00
jdp
8942781ffd Fix: too many arguments for format string in 4 calls to warnx(). 1997-11-18 05:45:19 +00:00
steve
0d14e7ad52 #include <unistd.h> for getopt(3) call. 1997-08-07 21:47:31 +00:00
charnier
f7485d3923 Correct Synopsys section. 1997-08-04 06:42:51 +00:00
imp
cd84ece5fd compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
steve
d54c037fcb -Wall cleaning. 1996-12-14 05:32:27 +00:00
steve
f726f30047 Remove annoying -Wall warning. 1996-10-06 02:40:39 +00:00
peter
d83943ed18 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
mpp
a8cd5be070 Correctly match the format flags and their descriptions.
Submitted by:	Dave Glowacki <dglo@ssec.wisc.edu>
1996-04-09 21:46:24 +00:00
joerg
402a79f826 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
rgrimes
79e59e9123 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
joerg
9fd4fbe0e0 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
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00