Commit Graph

2876 Commits

Author SHA1 Message Date
sjg 2ff6888cf4 Do not throw a usage message for -i followed by -t
since 'cpio -itv' is a valid command.
2010-08-25 21:36:02 +00:00
perry 7e5b4620db add bsd.subdir.mk 2010-08-22 02:21:31 +00:00
perry 9573f66f1d RCSIds 2010-08-22 02:19:07 +00:00
perry ee256018ca build the tutoral 2010-08-22 02:09:36 +00:00
perry 32b1d940e0 Extremely extensive updates.
This document should now serve as a reasonable tutorial for the
modern POSIX shell. Comments and additional fixes for mistakes I may
have made are solicited.
2010-08-22 02:03:06 +00:00
perry 62dd025e10 Revive S.R. Bourne's original tutorial on using the Bourne Shell.
This initial commit consists of the files as they existed in 4.4BSD,
with the copyrights altered to reflect the subsequent BSD relicensing.
2010-08-22 01:58:16 +00:00
enami 5a8bd46049 Fix broken indentation. No functional change. 2010-08-18 02:53:54 +00:00
njoly c45af2045a Do not check pcpu value against 100.0 but rather 99.95, to properly
deal with value rounding. From apb@.
2010-07-28 17:39:54 +00:00
njoly 0697f9d213 Make %cpu drop the decimal part when reaching 100%, to stay in the 5
expected columns.
2010-07-27 12:40:48 +00:00
joerg 0597463e89 Don't quite `+', `-' and `/' in set -x output. 2010-07-19 01:15:17 +00:00
rmind 1126bbae2c Add #include <sys/param.h> for howmany(). 2010-07-08 20:43:34 +00:00
wiz 9b010439be Use Fl Fl for long options. Remove unnecessary Bk/Ek. 2010-06-19 11:16:31 +00:00
christos 0ac48c3baa add --use-compress-program to pax, requested by mrg. 2010-06-19 00:43:57 +00:00
riz a9adb2c9b0 If the definition of a static function is #if DES, the declaration
of it should be too.  Fixes build of ed where MKCRYPTO=no.
2010-06-09 19:20:18 +00:00
sjg 6d83722e40 PR: 39604
Reviewed by:

add_glob:
Do not stop scanning if we see '$' as it does more harm than good.
For $HOME/tm we should return $HOME/tm*
2010-06-05 03:02:37 +00:00
christos eb956cbd4d need errno for the debug build. 2010-06-03 16:14:13 +00:00
christos f82c1d73b2 set -e is supposed to work inside eval; skip EV_TESTED. 2010-06-03 16:06:48 +00:00
dholland 30dd36f330 Note that set -o tabcomplete requires either set -o emacs or set -o vi
to work.
2010-06-03 02:05:02 +00:00
rmind 8b95f823bf Fix ps(1) and top(1) to show reasonable CPU numbers i.e. cpu_index() provided
by the kernel, instead of CPU order number, which is generally random.
2010-05-31 03:18:33 +00:00
dholland a617f5fd5a Don't blow up on date +''. Patch from Robert Elz in followup to PR 39392. 2010-05-29 20:41:58 +00:00
joerg 52bf796fd6 Explicitly quote | and : meant as separate operator. Kill trailing
whitespace. Don't use \Z' with obscure character entity. Reorder sections
to canonical order.
2010-05-24 00:29:30 +00:00
joerg a6a5384f08 Don't break lines in .It, there be dragons in groff. 2010-05-14 17:37:06 +00:00
joerg 3a7ba0e773 Reorder sections to canonical order. Use .Ex -std 2010-05-14 17:11:52 +00:00
joerg fd71eb70d7 Quote punctation. 2010-05-14 02:09:58 +00:00
joerg 22c838d332 Add MKBSDTAR, defaulting to no. It switching cpio and tar to the
libarchive based frontends.
2010-04-23 19:41:02 +00:00
joerg f95fad15ff \\ -> \e 2010-04-05 21:16:21 +00:00
joerg 00e74a9bf1 \\ -> \e 2010-04-05 16:16:53 +00:00
plunky 73d0ac941f - int putbuf_func ARGS((const char *s, size_t len));
+	int (*putbuf_func) ARGS((const char *, size_t));

for pcc
 - did not recognise pointer to function
 - argument names shadowed other arguments
2010-04-02 20:19:40 +00:00
christos b22f104713 make it obvious to grep that we are checking ctime. 2010-04-02 15:09:12 +00:00
christos 221f2e33dd handle ctime returning NULL 2010-04-01 22:23:27 +00:00
dholland 1021e8e12c bump date for previous 2010-03-23 18:09:16 +00:00
dholland bf1e7b508d The -X option of tar names a file containing exception globs, not
exception filenames, same as in gtar. PR 41168 from Perry.
2010-03-23 17:21:40 +00:00
joerg 26590112cf Use .In instead of .Aq Pa for header files 2010-03-22 18:35:09 +00:00
joerg 899808a54d Use .In instead of .Aq .Pa for signal.h. 2010-03-22 18:33:27 +00:00
joerg 6004702d47 \\ -> \e 2010-03-01 21:53:58 +00:00
christos d464f08166 fix faulty logic in previous change. 2010-02-21 09:54:57 +00:00
christos 72f71b4cd6 default to the original behavior for $ENV unless POSIXLY_CORRECT is set. 2010-02-20 23:15:17 +00:00
christos 8752bdfe89 PR/42828: Richard Hansen: Don't evaluate ${ENV} if not interactive.
http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_03
2010-02-17 15:57:24 +00:00
he 76d4444c78 When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
2010-02-06 23:45:24 +00:00
wiz e3da56d760 Remove trailing whitespace. 2010-02-04 22:56:11 +00:00
reed c0410f482f For the -d option, refer to parsedate(3) for examples. 2010-02-04 19:25:22 +00:00
roy 98eb889579 Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
snj f3bbc67d3e Document "-f". From Andreas Wiese in PR bin/35409, slightly modified. 2010-01-22 05:41:36 +00:00
wiz 4eb4d50caa Match curly braces in undef(FILEC) case. Found by cppcheck. 2010-01-17 12:15:36 +00:00
wiz 2afd9d4a18 Bump date for cd -P support. 2010-01-01 21:46:31 +00:00
dholland a5ced5a04b fix another typo 2010-01-01 19:51:19 +00:00
dholland cd0a6973f8 Make the cd builtin accept and ignore -P, which is a kshism that has been
allowed to leak into POSIX and selects the behavior cd already implements.
Closes PR bin/42557 and also relevant to PR pkg/42168.

I suppose this should probably be pulled up to both -4 and -5...
2010-01-01 19:34:59 +00:00
dholland 87e87a1f8c fix typo 2010-01-01 18:09:16 +00:00
christos 7b9eb38d5c Remove unnecessary casts. 2009-12-21 12:44:48 +00:00
wiz 8bdb893510 Free pt in another error case.
Found by Henning Petersen using cppcheck, in PR 42488.
2009-12-21 09:17:37 +00:00