Commit Graph

3347 Commits

Author SHA1 Message Date
joerg acfe9a7761 Add explicit char cast to show that the value change is intended. 2016-10-04 15:09:03 +00:00
abhinav 40e3a09c63 kill(1) is a utility, not a function. 2016-10-02 21:00:54 +00:00
sevan 51fe790c4c Drop main() prototype. 2016-09-05 01:00:07 +00:00
sevan 50517541f0 Move the description of CHANGER variable to ENVIRONMENT section
Bump date.
From OpenBSD src/bin/chio/chio.1 r1.23
2016-08-25 18:16:10 +00:00
sevan 90a4f225ec Remove redundant main() prototype which survived a K&R to ANSI transition. 2016-08-23 21:07:40 +00:00
sevan 03fb25d442 Mark email addresses as mailto links, heads up by Sascha Wildner.
Move email addresses to same line as author name.
Do not split the third author entry on to a new line.
Public domain is not licensed by definition, heads up by Robert Elz.
2016-08-23 20:34:23 +00:00
sevan 9e84015020 Instruction to not split the line needs to be stated separately. 2016-08-23 03:21:16 +00:00
sevan 0f2a09011f Add HISTORY section
Credit author of initial implementation in AUTHORS section
Bump date
Remove contraction highlighted by textproc/igor
2016-08-23 02:58:45 +00:00
sevan b61c439d62 bump date 2016-08-18 22:43:49 +00:00
sevan 6e78a5b106 dd first appeared in V5, not V1
Heads up by Ingo Schwarze
http://www.tuhs.org/cgi-bin/utree.pl?file=V5/usr/source/s1/dd.c
2016-08-18 22:42:28 +00:00
sevan ee4aa55280 While the v2 source and man pages are incomplete, TUHS has a scanned copy of the
printed version of the 2nd edition manual. stty is featured in this copy, in the
table of contents listed as meaning "set typewriter modes" and on the actual manual page
headed correctly as "set teletype options"
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf
Ammend HISTORY and bump date.
2016-08-14 23:29:43 +00:00
sevan 2881adbdf2 While the v2 source and man pages are incomplete, TUHS has a scanned copy of the
printed version of the 2nd edition manual. echo is featured in this copy.
http://www.tuhs.org/Archive/PDP-11/Distributions/research/1972_stuff/unix_2nd_edition_manual.pdf
Ammend HISTORY and bump date.
2016-08-14 22:59:22 +00:00
sevan 7346e185f5 Document the version test first appeared.
Bump date.
2016-08-12 03:17:41 +00:00
sevan ca8106df5f sync was there from v4.
Confirmed from the TUHS hosted copies of man pages.
2016-08-12 02:59:23 +00:00
sevan 5dee078da5 Document the version stty first appeared.
Bump date.
2016-08-12 02:49:18 +00:00
sevan 0995d1e872 Document the version sleep first appeared.
Bump date.
2016-08-12 02:36:38 +00:00
sevan a59caebcc3 Document the version rmdir first appeared.
Bump date.
2016-08-12 02:30:37 +00:00
sevan 15dc5a009b Document the version rm first appeared.
Bump date.
2016-08-12 02:26:42 +00:00
sevan 5ca5543cb0 Document the version pwd first appeared.
Bump date.
2016-08-12 02:03:26 +00:00
sevan 324ed4887a Document the version pax first appeared.
Bump date.
2016-08-12 01:52:22 +00:00
sevan 5da349fba4 Bump date 2016-08-11 22:10:01 +00:00
sevan a0ee124bc7 Earliest reference of kill in the TUHS archive is v3 AT&T UNIX.
Unfortunately only the source code for the compiler is present for that
release. The v2 archive is missing the manuals & only contains a some of the
commands.
Switch to v3 and reference manual category eight.
2016-08-11 21:56:55 +00:00
sevan 176b67f38f Pp not required before Bd, picked up by mandoc lint 2016-08-11 21:41:17 +00:00
sevan 2c701eeaeb Document the version echo first appeared.
Bump date.
2016-08-11 01:47:15 +00:00
sevan c616fdebbe Document the version dd first appeared.
Bump date.
2016-08-11 01:23:03 +00:00
sevan 787b668508 Pp not required before Bd, picked up by mandoc lint 2016-08-11 01:20:51 +00:00
sevan ddd300cc05 The macro to cross-reference is Xr, not Xt.
Fix typo error picked up by mandoc lint.
2016-08-11 01:14:01 +00:00
sevan 72d159d520 Document the version date first appeared.
Bump date.
2016-08-11 00:38:06 +00:00
sevan 04e682230f Document the version cp first appeared.
Bump date.
2016-08-11 00:17:23 +00:00
sevan 7813f5cd7c Document the version chmod first appeared.
Bump date.
2016-08-11 00:10:42 +00:00
sevan 76ed85f7b3 Document the first version chio appeared in.
Bump date.
2016-08-10 23:58:16 +00:00
sevan a836a50237 Mark Jason's name with An macro in AUTHORS section, warned about missing macro
by mandoc lint.
2016-08-10 23:54:20 +00:00
sevan 4b48d1babd Bump date
Reminded by wiz@
2016-08-10 23:48:14 +00:00
sevan 0b822dfa9c Earliest reference in the TUHS archive is v3
Unfortunately only the source code for the compiler is present for that
release. The v2 archive is missing the manuals & only contains a some of the
commands.
Switch to v3 and reference manual category eight, as per r1.32 of
src/bin/ps/ps.1 from OpenBSD.
Heads up from Ingo Schwarze.
2016-08-10 22:00:56 +00:00
sevan e687bdc5f3 df was there from v1.
Confirmed from the TUHS & cat-v.org hosted copies of man pages.
2016-08-10 18:58:23 +00:00
sevan abc56c017d Document the version ps first appeared. 2016-08-10 18:44:50 +00:00
sevan f8e12af4d6 Grammar 2016-08-10 18:42:00 +00:00
sevan 51c1598dae Forgot to bump date with previous commit 2016-08-10 18:08:14 +00:00
sevan def22cba82 Document the version mv first appeared. 2016-08-10 18:06:54 +00:00
sevan cf010966fe Document the version mkdir first appeared. 2016-08-10 17:56:32 +00:00
sevan 614e743689 ls was there from v1.
Confirmed from the TUHS & cat-v.org hosted copies of man pages
2016-08-10 17:45:12 +00:00
sevan 2d92cac8a1 ln was there from v1.
Confirmed from the TUHS & cat-v.org hosted copies of man pages
2016-08-10 17:38:39 +00:00
sevan a275f45a6c C Shell appeared in 2BSD, not 3BSD 2016-08-10 17:16:47 +00:00
sevan 9edf879ce4 When invoked with -se, print a '$' on blank lines
Obtained from OpenBSD r1.13 of src/bin/cat/cat.c

Closes PR bin/51250
Reviewed by Christos@
2016-06-16 00:52:37 +00:00
sevan f3ad9a4c7a Revert previous change made by me in r1.55 2016-06-16 00:45:37 +00:00
kre 09ccb20143 PR bin/51207 Only check for ELF bnaries in regular files. 2016-06-01 05:11:52 +00:00
kre cdb38c6b4d PR bin/43639
Redo earlier fix to only prohibit sourcing directories and block special files.
char specials (/dev/tty, /dev/null, ... incl /dev/rwd0a) and fifos are OK.

Posix actually requires that we find only readable files - that is not yet
implemented (doing it sanely, without opening the file twice, is going to
take some more modifications to code elsewhere).
2016-06-01 05:10:41 +00:00
kre 919211f1ab PR bin/47065 PR bin/39466
When the shell exits after an error (when that is the right thing for
it to do) ensure that it never does exit(0).
2016-06-01 02:50:02 +00:00
kre 95edbff793 PR bin/51145 PR bin/48489
More fixes to the shell parser to prevent empty simple commands (where
empty means no significant text at all) - as discussed on tech-userlevel
this still allows { } (which can be useful in function definitions, not
really anywhere else though) except in posix mode.  ( ) now generates
a syntax error, as should any other place where commands are required but
nothing is present.  (nb, redirections, var assignments, even var expansions
that expand to nothing, are all OK, and avoid the error - just comments, or
whits space, are not.)    This is (aside from allowing { } at all) all in
accordance with the posix spec.
2016-06-01 02:47:05 +00:00
dholland 07c23da28f Don't use the length return from snprintf to write out the result
buffer. If snprintf truncated the output, the length returned will be
greater and we'll write trash. Just call strlen instead. (And since
what we're doing is writing progress messages to the user, checking
carefully for truncation isn't really worthwhile either.)

Spotted when attending to PR 50998 from David Binderman; the issue
there (computation of an unused value) popped up because one of the
prints was already calling strlen.
2016-05-31 03:32:36 +00:00