Commit Graph

41 Commits

Author SHA1 Message Date
spz f1afa0902b Make sure that numerical signals and pids are in range for their types.
Fixes PR bin/42143
2009-10-01 09:24:38 +00:00
lukem 2fe2731d3f Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
wiz ef266ed897 Wordo fix, noted by jmc@openbsd. 2007-12-28 14:32:50 +00:00
wiz ac14332299 Fix argument confusion, noted by drochner. 2007-12-27 12:59:56 +00:00
wiz acce89e796 Improve -l description. From jmc@openbsd. 2007-11-07 22:36:35 +00:00
christos 65b5013e95 Coverity CID 2356: Remove bogus test !*argv; also cleanup string usage. 2006-03-17 22:30:11 +00:00
agc b5b2954259 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-07 09:05:01 +00:00
jschauma 458ed23412 As discusses a little while back on tech-userlevel:
If stdout is a tty, use vis(3) to print any filenames to prevent garbage
from being printed if the filename contains control- or other non-printable
characters.

While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
2003-08-04 22:31:21 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
christos 34100a1996 sent cont to jobs so that they can exit without an fg when killed. 2002-11-25 14:23:07 +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
ad 5a6b9d89df Xref pkill/pgrep. 2002-03-04 13:02:32 +00:00
wiz 3ebcdc5e43 Whitespace nits. 2001-12-20 19:31:48 +00:00
kleink 6dc4210b48 Deocument the meaning of a pid value of 0 and remove the BUGS section;
mostly from Jonathan Perkin in resolution of PR bin/15008.
2001-12-20 15:13:08 +00:00
wiz ed7b508e36 Use {g,s}etprogname. Patch by Petri Koistinen. 2001-09-16 13:55:09 +00:00
wiz e54efb953b ANSIfy, some style improvements. Some parts from #13593 by Petri Koistinen. 2001-07-29 22:46:36 +00:00
christos eb7c557ca3 s/exit_status/signal_number/ 2000-05-13 17:04:04 +00:00
jdolecek a12da43ac4 xref signal(7) 1999-10-06 17:19:09 +00:00
ad 5118f5b2cc Consistancy nits. 1999-09-18 18:45:39 +00:00
christos 30d3c9f1b4 unsigned char casts for is*() 1998-11-04 18:14:15 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
mycroft 1381f68431 Delint. 1998-07-28 05:15:46 +00:00
enami c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos 51e9bcec47 Add WARNS=1 1997-07-20 17:34:50 +00:00
thorpej 71f1354a10 Fix a typo that caused lack of argument to be misinterpreted as "0".
From Arne H. Juul <arnej@pvv.ntnu.no>, PR #3236.
1997-02-22 01:45:41 +00:00
mikel 6a37335a9d reference sigaction(2) instead of the obsolete sigvec(3); fixes PR 3058. 1996-12-26 02:29:58 +00:00
jtc f859c958ca Sync with 4.4lite2 1995-09-07 06:28:39 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
jtc da08b16c49 Changed to accept ``kill -0 pid'' (PR #842). 1995-03-17 05:48:48 +00:00
cgd 5dad143982 from James Jegers <jimj@miller.cs.uwm.edu>: quiet -Wall, and squelch
some of the worst style errors.
1994-12-04 07:11:37 +00:00
mycroft 667b5ea158 Merge 4.4-Lite version. 1994-09-22 09:24:46 +00:00
mycroft cd203f3214 Use sys_signame[]. 1993-08-06 21:25:21 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
jtc 0ba3448400 Make POSIX 1003.2 (D11.2) compliant. 1993-07-22 16:42:16 +00:00
cgd 06be60083d changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 346aa5dd48 added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00