stefanf
5c1966823e
Add the times builtin. It reports the user and system time for the shell
...
itself and its children. Instead of calling times() (as implied by POSIX) this
implementation directly calls getrusage() to get the times because this is more
convenient.
2005-12-04 18:44:21 +00:00
ru
6bbac1a76d
-mdoc sweep.
2005-11-17 12:15:23 +00:00
jcamou
93ee5d4e7b
Add local' and
return' to the list of built-ins.
...
Submitted by: garys
Approved by: trhodes (mentor)
2005-11-03 00:15:19 +00:00
stefanf
a5324897c5
Document command -v and -V.
...
Glanced at by: simon
2005-10-29 13:08:35 +00:00
stefanf
9d5c45dd33
Document that read -t timeout returns 1 if the timeout elapses.
2005-10-29 08:22:09 +00:00
stefanf
4ca0c8b501
Elaborate on the behaviour of set -e.
2005-09-10 09:28:39 +00:00
stefanf
14d2a8a99c
Split the export synopsis into two lines as -p cannot be mixed with variable
...
names.
2005-09-09 21:06:03 +00:00
rse
4484576c7c
fix typo: ommitted -> omitted
2005-09-06 16:08:37 +00:00
stefanf
50da0d71bf
Document that `in word ...' is optional in the for command.
2005-09-03 16:06:04 +00:00
stefanf
9426f09a8e
Document that unalias can be used to remove several alias names.
2005-09-02 21:15:56 +00:00
jcamou
807c0b2541
Wrap a line due to a new sentence.
...
Noticed by: simon
Approved by: trhodes (mentor)
2005-08-29 21:28:12 +00:00
jcamou
d634255a1c
o Discuss the ways to escape an alias.
...
o Fix the alias syntax lines.
o Refer to the Aliases subsection.
PR: docs/84914
Submitted by: garys
Approved by: trhodes (mentor)
MFC after: 3 days
2005-08-29 06:47:43 +00:00
stefanf
5b1426ccf5
Document umask's -S option.
2005-08-17 19:44:15 +00:00
ru
81411ac5c7
Sorted sections and fixed prompt (PS[12]) strings.
...
Approved by: re (blanket)
2005-06-14 08:25:00 +00:00
ru
567c029373
Put the description of the -c option in the right place, as
...
promised by the Argument List Processing section introduction.
What follows the option in the options list is its long name,
not its argument (as is the case for the -c option). Also
sort references in the SEE ALSO section.
Approved by: re (blanket)
2005-06-14 07:50:44 +00:00
keramida
b4fe464431
Various sh(1) enhancements:
...
- Move the description of the ``-c string'' option closer to the option itself.
- Add an ENVIRONMENT section (1)
- Add more .Xr cross references to the SEE ALSO section.
Obtained from: NetBSD (1)
2005-04-15 14:53:29 +00:00
keramida
df2a700f9f
Use `.Pq Ql'' to quote single characters, instead of
`.Pq Li''.
...
This makes the resulting output more aesthetically pleasing in
text-only terminals:
Reviewed by: ru
2005-03-04 13:16:50 +00:00
keramida
0cc989219b
Add a section describing the exit status of the shell.
...
Obtained from: NetBSD
2005-03-04 12:40:07 +00:00
imp
a76898b849
/*- or .\"- or #- to begin license clauses.
2005-01-10 08:39:26 +00:00
ru
1cd8ce95ba
Scheduled mdoc(7) sweep.
2005-01-09 19:54:23 +00:00
ceri
a649e475d4
Correct typo.
2005-01-04 12:44:25 +00:00
maxim
3e3573e4ca
o Add a missed "." .
...
Reviewed by: ru
MFC after: 3 weeks
2004-12-02 13:13:27 +00:00
alfred
9ac1091d8c
When listing the special $ variables, ($!, $#, etc) list them as $!
...
instead of just !, this allows one to more easily locate/understand
the section of the manpage in question.
Additional wording correction by: keramida
Reviewed by: keramida
2004-11-01 19:05:04 +00:00
tjr
82e3e73431
Document missing multibyte character handling in utilities specified
...
by POSIX.
2004-07-03 02:03:44 +00:00
ru
d40c857e0d
Mechanically kill hard sentence breaks.
2004-07-02 21:04:19 +00:00
green
d89ed54a8b
Document the "return" built-in better: it will exit . (sources) and
...
the top-level shell instance, too.
2004-04-14 15:58:50 +00:00
markm
4383f14801
Remove clause 3 from the UCB licenses.
...
OK'ed by: imp, core
2004-04-06 20:06:54 +00:00
ru
1c23ef339b
mdoc(7): Use the new feature of the .In macro.
2003-09-08 19:57:22 +00:00
ru
c67d493b98
mdoc(7) police: A better version of the same.
...
Approved by: re (blanket)
2003-05-16 21:19:32 +00:00
schweikh
eb8fd40b31
Fix references to non-existing or obsoleted man pages.
...
PR: docs/51480 (only a small part)
Submitted by: Diomidis D. Spinellis <dds@aueb.gr>
2003-04-30 19:18:50 +00:00
tjr
cc40c95588
Document the -L and -P options to the cd and pwd commands as being
...
mutually exclusive. The fact that the most recent one specified on the
command line is the one that takes effect is an implementation detail and
users should not rely on this.
2003-04-12 03:20:28 +00:00
fanf
f2d3e8e22c
Improve the layout of the description of the various parameter expansion
...
modifiers. The paragraph that explains the difference between ${foo:-bar}
and ${foo-bar} etc. was not very visible.
2003-02-03 23:03:05 +00:00
ru
4979ab8d81
mdoc(7) police: Deal with self-xrefs.
2002-12-24 13:41:48 +00:00
ru
872b8f74a9
mdoc(7) police: markup nit.
2002-12-23 15:21:38 +00:00
trhodes
10dbdf9107
The code uses trapsasync, however the manual page uses asynctraps. Fix the
...
manual page to reflect the code.
PR: 45820
Submitted by: Marco Molteni <molter@tin.it>
Discussed with: tjr
2002-12-17 20:27:48 +00:00
fanf
3a97bafeeb
Document trap EXIT
and trap SIGNAME
.
2002-12-17 17:31:44 +00:00
tjr
2eb0d94f37
There is a built-in command called "builtin"; spell its name correctly
...
after rev. 1.77 called it "built-in".
2002-08-24 12:41:23 +00:00
trhodes
9618da3e35
s/filesystem/file system/ as discussed on -developers
2002-08-21 17:32:44 +00:00
schweikh
842f45255d
Fix a few typos, among them s/builtin/built-in/ (except for the ref
...
to the builtin(1) man page.) This is for consistency with the spelling
both proposed by ispell as well as IEEE Std 1003.1-2001.
MFC after: 3 days
2002-08-21 15:05:55 +00:00
ru
e185ee0111
mdoc(7) police: tidying.
2002-08-09 10:59:20 +00:00
tjr
43d6a14678
Add a -P/-o physical option which behaves similarly to bash/ksh's options
...
by the same name. This option makes the cd and pwd builtins behave physically
(as opposed to logically) by default.
Submitted by: fanf
2002-07-25 10:57:39 +00:00
tjr
f9fd5faa32
Add a `bind' builtin command, which is simply a wrapper around libedit's
...
builtin command of the same name. This allows the key bindings for the
shell's line editor to be changed.
MFC after: 2 weeks
2002-07-23 11:50:53 +00:00
tjr
bd9024b4d7
Implement the P1003.2 `command' builtin command, which is used to suppress
...
shell function and alias lookup. The -p option has been implemented, the
UPE -v and -V options have not. The old `command' command has been renamed
to `builtin'.
2002-07-21 06:49:14 +00:00
tjr
28039a3e13
Document that only one of the -n and -e options may be specified for
...
sh(1)'s echo(1) builtin command.
PR: 32935, 40747
MFC after: 1 week
2002-07-20 04:39:23 +00:00
dillon
7340de44e8
Fix type-o in last commit in preparation for MFC.
2002-07-02 19:06:33 +00:00
sheldonh
8e1ca9d76c
Document addition of RLIMIT_VMEM support, added in rev 1.26 of miscbltin.c.
2002-06-27 16:56:45 +00:00
tjr
6b197bb764
Bring documentation on CDPATH and its effects on cd(1) back into sync with
...
reality (and POSIX): current directory isn't searched unless CDPATH has
a "." element or is unset.
PR: 38442
Submitted by: oleg dashevskii <be9@be9.ru>
MFC after: 1 week
2002-06-19 12:04:22 +00:00
tjr
8b3a40cd3f
Document the -f and -v options of the unset builtin.
2002-06-06 04:12:50 +00:00
tjr
c74ee6d523
Add the SUSv3 -p ("portable") option to both the export and readonly
...
builtins. This makes export/readonly print lines in the form
"export name=value".
2002-06-06 03:57:22 +00:00
tjr
33d27dd210
Quote alias values in the output of the alias(1) builtin so they are
...
suitable for re-input to the shell (SUSv3)
2002-06-04 12:59:12 +00:00