summaryrefslogtreecommitdiffstats
path: root/bin/sh/bltin
Commit message (Collapse)AuthorAgeFilesLines
* sh: Fix duplicate prototypes for builtins.jilles2011-06-131-3/+1
| | | | | | Have mkbuiltins write the prototypes for the *cmd functions to builtins.h instead of builtins.c and include builtins.h in more .c files instead of duplicating prototypes for *cmd functions in other headers.
* sh: Add kill builtin.jilles2010-12-211-0/+5
| | | | | | | | | | | | | | | | | This allows specifying a %job (which is equivalent to the corresponding process group). Additionally, it improves reliability of kill from sh in high-load situations and ensures "kill" finds the correct utility regardless of PATH, as required by POSIX (unless the undocumented %builtin mechanism is used). Side effect: fatal errors (any error other than kill(2) failure) now return exit status 2 instead of 1. (This is consistent with other sh builtins, but not in NetBSD.) Code size increases about 1K on i386. Obtained from: NetBSD
* sh: Add a function to print warnings (with command name and newline).jilles2010-12-211-5/+1
| | | | | | This is like error() but without raising an exception. It is particularly useful as a replacement for the warnx macro in bltin/bltin.h.
* sh: Make warnings in the printf builtin non-fatal, like in the program.jilles2010-12-201-15/+6
| | | | | | | | The #define for warnx now behaves much like the libc function (except that it uses sh command name and output). Also, it now uses C99 __VA_ARGS__ so there is no need for three different macros for 0, 1 or 2 parameters.
* sh: Add binary buffered output for use by the printf builtin.jilles2010-11-141-0/+1
|
* sh: Remove unused man page for echo builtin.jilles2010-11-121-114/+0
| | | | | | | | | | | | | The information in sh(1) about the echo builtin is equivalent, though less extensive. The echo(1) man page (bin/echo/echo.1) is different. Unfortunately, sh's echo builtin and /bin/echo have gone out of sync and this probably cannot be fixed any more. Reported by: uqs (list of untouched files) MFC after: 1 week
* Declare echocmd() and testcmd().stefanf2005-08-131-0/+2
|
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-0/+1
|
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+4
|
* Remove clause 3 from the UCB licenses.markm2004-04-063-12/+0
| | | | OK'ed by: imp, core
* Add FBSDID.charnier2003-02-051-1/+3
|
* Use '\033' rather than '\e' as the latter is a gccism.dwmalone2002-12-221-1/+1
| | | | | | PR: 46015 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl> MFC after: 1 week
* Capitalize ASCII code names.ru2002-12-051-1/+3
| | | | Approved by: re
* Use `The .Nm utility'charnier2002-04-161-1/+2
|
* o __P has been reovedimp2002-02-022-8/+1
| | | | | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o Change int foo() { ... to int foo(void) { ...
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* -Wnon-const-format sweep: make format strings const char *'s, addkris2001-04-171-1/+1
| | | | | | __printflike()/__printf0like() to function prototypes, as appropriate. Reviewed by: bde, -audit
* Add \a and \e to "echo -e" escape handling.mph2000-06-261-0/+2
|
* $Id$ -> $FreeBSD$peter1999-08-273-3/+3
|
* Fixed warnx format errors in printf and csh, and snprintf format errorsbde1998-12-071-2/+12
| | | | | | in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx. (The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy args.)
* Nuke register keyword usage and #if -> #ifdef.steve1997-04-281-4/+4
| | | | Obtained from: NetBSD
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Merge in NetBSD mods and -Wall cleaning.steve1996-12-142-9/+7
| | | | Obtained from: NetBSD, me
* Fix for PR#1287. This makes sh behave sensibly in case statements in thepeter1996-09-031-6/+6
| | | | | | | | | | | | | | face of aliases. Note, bash doesn't do aliases while running scripts, but "real" ksh does.. Also: Reduce redundant .Nm macros in (unused) bltin/echo.1 nuke error2, it's hardly used. More -Wall cleanups dont do certain history operations if NO_HISTORY defined handle quad_t's from resource limits Submitted by: Steve Price <sprice@hiwaay.net> (minor tweaks by me)
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is apeter1996-09-013-8/+12
| | | | | | | | | | | | | | merge of parallel duplicate work by Steve Price and myself. :-] There are some changes to the build that are my fault... mkinit.c was trying (poorly) to duplicate some of the work that make(1) is designed to do. The Makefile hackery is my fault too, the depend list was incomplete because of some explicit OBJS+= entries, so mkdep wasn't picking up their source file #includes. This closes a pile of /bin/sh PR's, but not all of them.. Submitted by: Steve Price <steve@bonsai.hiwaay.net>, peter
* Restored formatting from the old printf/printf.c.bde1995-12-141-5/+5
|
* Move out some of the shell builtin bogosity from printf's source tojoerg1995-12-101-1/+10
| | | | sh's builtin/bltin.h.
* Clean up compilation warnings.pst1995-08-231-1/+4
|
* Added $Id$dg1994-09-243-0/+3
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-263-0/+289
OpenPOWER on IntegriCloud