Commit Graph

44 Commits

Author SHA1 Message Date
wiz abe0b8ad64 Use .Aq instead of \*[Lt]...\*[Gt]; sort SEE ALSO; add some more commas;
new sentence, new line; fix some mdoc nits.
2003-04-28 09:38:19 +00:00
augustss 86be450da2 Add missing comma. 2003-04-28 09:26:34 +00:00
dsl a5f7364038 Fix the output of NUL bytes within %b formats.
(Approved by Christos)
2003-02-24 14:42:27 +00:00
christos c02b3bbdf4 Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
  (so I could unset -e PS1 before running the test shell...)
2002-11-24 22:35:38 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
tron 5456dc6136 Complete declaration of progprintf() to fix build problem in csh(1). 2002-06-14 11:32:15 +00:00
wiz 085ddec445 Remove #ifdef __STDC__. De-__P() and ANSIfy. Fix a prototype mismatch
uncovered by this.
2002-06-14 01:12:15 +00:00
wiz 6fbcffc530 WARNS=2 2002-06-14 01:10:36 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz b28000888d Punctuation nits. 2001-12-08 19:10:43 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
kleink dd849fecca Change to use {u,}intmax_t internally (was: (unsigned) long). 2001-05-05 17:29:39 +00:00
jhawk 404ef082e4 Xr printf(9) 2001-04-03 13:59:22 +00:00
is 135600f947 More format string cleanup by sommerfeld. 2000-10-11 14:46:00 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
christos 76f0fa8f60 brace pollution, and char -> unsigned char 1998-12-19 20:21:44 +00:00
wsanchez af4e69540c include unistd 1998-10-14 00:56:00 +00:00
garbled b94d51892e \e generates an escape character but is not listed in the manpage. Fixed. 1998-08-22 14:54:48 +00:00
perry c10fb822b5 add <unistd.h> to fix compiler warning 1998-02-03 03:10:15 +00:00
lukem 54bdc1acab remove WARNS?=1, cleanup .Nm usage 1997-11-08 09:34:23 +00:00
lukem 2f07741322 s/index/strchr 1997-10-19 22:57:05 +00:00
mrg 09366313d3 "merge" lite-2. our printf is already kinda different...minor changes only. 1997-10-18 15:38:01 +00:00
christos abc99479ba Fix compiler warnings. 1997-07-04 21:25:16 +00:00
mouse 650ee578da alternate -> alternative, per PR 2643 1997-03-08 14:13:54 +00:00
cgd 8d3057754a lint and KNF changes. (mostly casting returns to void to quiet lint.) 1997-01-14 19:20:09 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc 89c36052b7 Changed floating point output format to be exactly the same (use same
text and macros) as those in the printf(3) manpage.
This fixes PR #1194, albeit differently.
1995-07-07 23:00:13 +00:00
jtc e9e6fca8b9 The descriptions of the o and u formatting options were reversed (PR #785). 1995-02-15 15:32:27 +00:00
jtc 5d5d116e4a Simplify conversion of "quoted" numeric arguments. 1994-02-03 01:10:49 +00:00
jtc 14f244e88f Code to check if conversion (by strtol(), strtoul(), or strtod()) was
identical, so I moved it into its own function.
1994-02-03 00:35:18 +00:00
jtc 3c10d8e071 Add and use getulong() to handle %u, %o, %x & %X formatting directives.
It was using getlong(), which caused values larger than LONG_MAX to be
truncated to LONG_MAX.
As recommended by 1003.2, print warning messages when argument cannot be
converted to value or is out of range.
1994-02-03 00:16:11 +00:00
jtc e63929d7f5 Handle format strings error correctly. 1993-12-31 01:46:16 +00:00
jtc 0e4b463504 Error in hextobin() macro messed up hex escape constants. 1993-11-25 04:42:11 +00:00
jtc 4c35e0b3ba Oops! get rid of the free(), mklong()'s buffer no longer malloc()'d. 1993-11-19 21:08:17 +00:00
jtc fac5e167cc Return from main() if a \c escape is encountered in a %b string (was an exit()).
Use macro constants for "skip1" and "skip2" instead of assigning them
each loop iteration.
Reformat the multi-case entries in the "big switch" so the lines don't wrap.
1993-11-19 21:05:37 +00:00
jtc 563de0f1c5 Move all the code from do_printf() into do-while loop in main(). I need
to be able to return from main() when a "\c" in a %b string is encountered.
1993-11-19 20:50:27 +00:00
jtc d1a877c5ed Merged in most of the changes from 4.4 necessary to make printf a sh
and csh builtin --- still need to handle the one remaining exit() in
the SysV escape string handling code.
1993-11-19 20:30:57 +00:00
jtc 62f30e8257 Changes required to make printf utility POSIX.2 compliant:
* Escape characters in the string needed to be processed as they were
   encountered, otherwise a "\000" octal constant would prematurely
   terminate the formatting string.
 * Implemented the %b, SysV echo(1) compatibility, formatting directive.
1993-11-05 20:12:38 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
mrg b32571f57a 4.4BSD-Lite2 1993-06-06 22:58:35 +00:00
mycroft 0b3fc2c11f Cleanup for GCC 2. 1993-04-19 07:39:27 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00