OpenBSD CVS

CVS log for src/bin/ksh/sh.1


[BACK] Up to [local] / src / bin / ksh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.158 / (download) - annotate - [select for diffs], Wed Mar 6 06:26:22 2024 UTC (2 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.157: +3 -3 lines
Diff to previous 1.157 (colored)

add missing Ev macro; from mail at lukasneukom ch

Revision 1.157 / (download) - annotate - [select for diffs], Sat May 13 18:34:49 2023 UTC (12 months, 2 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.156: +3 -3 lines
Diff to previous 1.156 (colored)

add /usr/local/sbin to PATH;
confirmed/ok kn

Revision 1.156 / (download) - annotate - [select for diffs], Mon Dec 19 08:19:50 2022 UTC (17 months, 2 weeks ago) by sdk
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.155: +3 -3 lines
Diff to previous 1.155 (colored)

Remove array reference from sh(1) because sh doesn't have arrays.
Reported with diff from Ross L Richardson

Agreed kn, OK jmc

Revision 1.155 / (download) - annotate - [select for diffs], Wed Aug 31 22:27:14 2022 UTC (21 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.154: +4 -4 lines
Diff to previous 1.154 (colored)

use the posix phrasing to improve the description of "shift";
nudge from luka krmpotic

Revision 1.154 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:14 2022 UTC (2 years, 2 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.153: +6 -6 lines
Diff to previous 1.153 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.153 / (download) - annotate - [select for diffs], Tue May 4 21:03:31 2021 UTC (3 years ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.152: +21 -2 lines
Diff to previous 1.152 (colored)

shell scripts should use getopts instead of getopt

Add a prominent deprecation notice to getopt.1.
Add examples of the getopts idiom to sh.1 and ksh.1.

Requested by and ok espie@, ok jmc@

Revision 1.152 / (download) - annotate - [select for diffs], Wed May 22 15:23:23 2019 UTC (5 years ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.151: +7 -3 lines
Diff to previous 1.151 (colored)

mention that using vi command line editing mode requires enabling it;
omission reported by Rudolf Sykora <rsykora at disroot dot org> on misc@;
tweak and OK jmc@

Revision 1.151 / (download) - annotate - [select for diffs], Sun Dec 16 13:08:35 2018 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.150: +7 -5 lines
Diff to previous 1.150 (colored)

Tweak the syntax displays to show that the list of words
in "for name in [word ...]; do list; done" can be empty.
In sh(1), clarify what happens in that case.
In ksh(1), clarify how it can happen that the list is never executed.
OK jmc@ tb@

Revision 1.150 / (download) - annotate - [select for diffs], Fri Nov 30 08:55:57 2018 UTC (5 years, 6 months ago) by solene
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

in getopts, when a option is followed by a colon the parameter is mandatory

ok guenther@ deraadt@

Revision 1.149 / (download) - annotate - [select for diffs], Fri Sep 28 18:32:39 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.148: +2 -3 lines
Diff to previous 1.148 (colored)

Contrary to the sh manual, it is possible to modify the PWD variable
(and this is allowed by POSIX).  OK deraadt@ kn@

Revision 1.148 / (download) - annotate - [select for diffs], Sat Mar 31 14:58:19 2018 UTC (6 years, 2 months ago) by anton
Branch: MAIN
Changes since 1.147: +3 -3 lines
Diff to previous 1.147 (colored)

Fix spacing in brace command list grammar.
Initial diff by me, later improved by schwarze@; also ok jmc@

Revision 1.147 / (download) - annotate - [select for diffs], Fri Mar 16 16:58:26 2018 UTC (6 years, 2 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.146: +6 -6 lines
Diff to previous 1.146 (colored)

improve markup quality in the cases found by the new "--" style message

Revision 1.146 / (download) - annotate - [select for diffs], Sat Dec 30 07:32:09 2017 UTC (6 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.145: +4 -4 lines
Diff to previous 1.145 (colored)

backslash also escapes newlines when quoted;
from kshe

Revision 1.145 / (download) - annotate - [select for diffs], Fri Dec 15 20:51:28 2017 UTC (6 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.144: +4 -4 lines
Diff to previous 1.144 (colored)

oops - previous should have been a list item;

Revision 1.144 / (download) - annotate - [select for diffs], Tue Dec 12 11:34:38 2017 UTC (6 years, 5 months ago) by tb
Branch: MAIN
Changes since 1.143: +12 -7 lines
Diff to previous 1.143 (colored)

Document change in the default shell prompts.

Discussed with and ok jmc

Revision 1.143 / (download) - annotate - [select for diffs], Thu Jun 1 20:37:38 2017 UTC (7 years ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored)

The fact is simple: Subshells have the same PPID as the current shell.
What is not so simple is squinting hard enough to conclude that POSIX
actually says that. I'm still not sure how to do that.
Problem with the shell manual pointed out by "Choose a display name".

ok otto, halex, jmc

Revision 1.142 / (download) - annotate - [select for diffs], Fri May 26 11:45:57 2017 UTC (7 years ago) by jmc
Branch: MAIN
Changes since 1.141: +3 -1 lines
Diff to previous 1.141 (colored)

document behaviour when CDPATH unset;
requested by a mail on misc, via otto;

ok otto

Revision 1.141 / (download) - annotate - [select for diffs], Thu Mar 16 20:06:37 2017 UTC (7 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.140: +5 -1 lines
Diff to previous 1.140 (colored)

document the "type" built-in, marked as xsi by posix;

Revision 1.140 / (download) - annotate - [select for diffs], Thu Mar 16 19:59:15 2017 UTC (7 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.139: +8 -2 lines
Diff to previous 1.139 (colored)

document the ulimit built-in, which is now marked xsi by posix;
noted by scott cheloha

Revision 1.139 / (download) - annotate - [select for diffs], Thu Mar 16 19:15:19 2017 UTC (7 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.138: +10 -4 lines
Diff to previous 1.138 (colored)

document the "hash" built-in, moved to (posix) base in issue 7;

Revision 1.138 / (download) - annotate - [select for diffs], Mon Nov 14 09:21:35 2016 UTC (7 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

Remove an escaped blank space and insert an No macro to keep \&; at a
distance from 'Ar command'.

This is schwarze's correct version of an initial incorrect diff from me.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Nov 12 22:37:41 2016 UTC (7 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored)

Fix lexicographic order of shell built-ins: trap comes before true.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Aug 12 06:16:19 2016 UTC (7 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.135: +4 -4 lines
Diff to previous 1.135 (colored)

rework initial text a little, to read better;

Revision 1.135 / (download) - annotate - [select for diffs], Thu Jul 28 16:36:02 2016 UTC (7 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.134: +2 -5 lines
Diff to previous 1.134 (colored)

remove note about command substitution and double quotes: it is probable
that i misunderstood something when i wrote it;

found by guenther and naddy

Revision 1.134 / (download) - annotate - [select for diffs], Mon Jul 18 18:24:21 2016 UTC (7 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.133: +7 -8 lines
Diff to previous 1.133 (colored)

rework the first sentence of this page;
with help from otto

Revision 1.133 / (download) - annotate - [select for diffs], Wed May 4 08:31:00 2016 UTC (8 years, 1 month ago) by schwarze
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

Correct the description of the != operator in arithmetic expansion;
from Andras Farkas <deepbluemistake at gmail dot com>.

Revision 1.132 / (download) - annotate - [select for diffs], Wed May 4 06:20:42 2016 UTC (8 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored)

line editing correction; from andras farkas

Revision 1.131 / (download) - annotate - [select for diffs], Mon Mar 21 13:35:00 2016 UTC (8 years, 2 months ago) by tb
Branch: MAIN
Changes since 1.130: +5 -2 lines
Diff to previous 1.130 (colored)

More ksh POSIX compliance fixes by Martijn Dekker:

This simple patch makes the 'command' builtin POSIX-compliant and
consistent with other current shells. It fixes two things:

   a) 'command -v' does not find shell reserved words (a.k.a. keywords).
For instance, 'command -v select' outputs nothing but should output
'select'.

   b) 'command -pv' always outputs the path of an external command, even
if 'command -p' would execute a builtin. For instance, 'command -p kill'
executes the 'kill' builtin, as expected, but 'command -pv kill' outputs
'/bin/kill'. The '-v' option is supposed to reflect what would actually
be executed, so 'command -pv kill' should output 'kill'. The -p option
sets the PATH to a default system value before doing the search, but
that has no bearing on the fact that builtins take precedence over
external commands.

The patch fixes both issues for 'command' without affecting the
behaviour of the ksh-specific builtin 'whence', which is handled by the
same C function.

Regression test added to obsd-regress.t.

Issues found and fixed by Martijn Dekker, ok millert@

Revision 1.130 / (download) - annotate - [select for diffs], Mon Oct 12 12:34:42 2015 UTC (8 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored)

indent the builtin text a little, for naddy;

Revision 1.129 / (download) - annotate - [select for diffs], Mon Sep 14 20:06:58 2015 UTC (8 years, 8 months ago) by schwarze
Branch: MAIN
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored)

Avoid .Ns right after .Pf, it's pointless.
In some cases, do additional cleanup in the immediate vicinity.

Revision 1.128 / (download) - annotate - [select for diffs], Mon May 4 19:34:13 2015 UTC (9 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.127: +17 -3 lines
Diff to previous 1.127 (colored)

lightly document the posix option and POSIXLY_CORRECT; will sketch out
in more detail once i get my head round them...

Revision 1.127 / (download) - annotate - [select for diffs], Thu Apr 30 20:19:04 2015 UTC (9 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.126: +13 -13 lines
Diff to previous 1.126 (colored)

reapply the rules of english to the option keywords: i was persuaded to undo it
because the option names are case sensitive, but it just looks awful. so
expect just a little more from the reader...

Revision 1.126 / (download) - annotate - [select for diffs], Tue Mar 31 21:23:34 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.125: +21 -16 lines
Diff to previous 1.125 (colored)

both rpe and zhuk pointed out some problems with my if/elf template.
zhuk suggested using "condition" rather than command, and this commit
reworks the loop/conditional section to do that;

ok zhuk rpe

Revision 1.125 / (download) - annotate - [select for diffs], Mon Mar 30 19:17:06 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.124: +11 -11 lines
Diff to previous 1.124 (colored)

on zhuk's advice, don;t talk about null: posix uses null and empty
interchangeably, but we've stuck with empty;

while here, sneak in an otherwsie -> otherwise

Revision 1.124 / (download) - annotate - [select for diffs], Fri Mar 27 14:22:59 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored)

clarity fix from zhuk;

Revision 1.123 / (download) - annotate - [select for diffs], Thu Mar 26 20:10:22 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

a little wording tweak;

Revision 1.122 / (download) - annotate - [select for diffs], Thu Mar 26 20:08:58 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.121: +6 -6 lines
Diff to previous 1.121 (colored)

various fixes from rpe;

Revision 1.121 / (download) - annotate - [select for diffs], Thu Mar 26 10:51:15 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.120: +2 -2 lines
Diff to previous 1.120 (colored)

from zhuk: in the for loop, show "in word ..." as optional;

Revision 1.120 / (download) - annotate - [select for diffs], Thu Mar 26 10:36:59 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.119: +6 -6 lines
Diff to previous 1.119 (colored)

from zhuk: sequential and asynchronous lists may take only one item;

Revision 1.119 / (download) - annotate - [select for diffs], Thu Mar 26 09:59:23 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.118: +28 -10 lines
Diff to previous 1.118 (colored)

rework the section on when different types of command are processed;
zhuk pointed out the flaws in my original text, and has found many more since;

Revision 1.118 / (download) - annotate - [select for diffs], Thu Mar 19 22:38:28 2015 UTC (9 years, 2 months ago) by zhuk
Branch: MAIN
Changes since 1.117: +10 -3 lines
Diff to previous 1.117 (colored)

Fix IFS description. May be polished further when all consequences of
following "null is the same as empty" from POSIX are investigated.

okay jmc@

Revision 1.117 / (download) - annotate - [select for diffs], Thu Mar 19 22:34:59 2015 UTC (9 years, 2 months ago) by zhuk
Branch: MAIN
Changes since 1.116: +2 -3 lines
Diff to previous 1.116 (colored)

Make it clear that it's the line who shouldn't be empty, and not the
command history.

This version comes from jmc@ together with his okay.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Mar 18 22:18:19 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.115: +5 -5 lines
Diff to previous 1.115 (colored)

remove ambiguity from the COMMANDS section, after discussion with zhuk;

Revision 1.115 / (download) - annotate - [select for diffs], Wed Mar 18 22:11:21 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.114: +5 -1 lines
Diff to previous 1.114 (colored)

from zhuk: a little more info on <>

Revision 1.114 / (download) - annotate - [select for diffs], Wed Mar 18 22:09:22 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.113: +7 -8 lines
Diff to previous 1.113 (colored)

improve the description of here documents; prompted by zhuk

Revision 1.113 / (download) - annotate - [select for diffs], Wed Mar 18 16:20:05 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.112: +10 -11 lines
Diff to previous 1.112 (colored)

rework the redirection text after some feedback from zhuk;

Revision 1.112 / (download) - annotate - [select for diffs], Tue Mar 17 14:30:35 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.111: +2 -2 lines
Diff to previous 1.111 (colored)

revert a previous word change - the original seems more accurate;

Revision 1.111 / (download) - annotate - [select for diffs], Tue Mar 17 10:01:16 2015 UTC (9 years, 2 months ago) by bentley
Branch: MAIN
Changes since 1.110: +13 -13 lines
Diff to previous 1.110 (colored)

Escape certain characters for slightly more correct (and prettier) output.

ok jmc@

Revision 1.110 / (download) - annotate - [select for diffs], Tue Mar 17 07:02:48 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.109: +6 -4 lines
Diff to previous 1.109 (colored)

from zhuk: provide some Sx

Revision 1.109 / (download) - annotate - [select for diffs], Tue Mar 17 06:59:48 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.108: +5 -4 lines
Diff to previous 1.108 (colored)

from zhuk: shell does not wait for command to complete if job run in background

Revision 1.108 / (download) - annotate - [select for diffs], Mon Mar 16 13:18:20 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.107: +2 -2 lines
Diff to previous 1.107 (colored)

from zhuk: be clear that "#" is a variable

Revision 1.107 / (download) - annotate - [select for diffs], Sun Mar 15 23:09:10 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

from zhuk: two grammar fixes;

Revision 1.106 / (download) - annotate - [select for diffs], Sun Mar 15 23:03:26 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.105: +4 -3 lines
Diff to previous 1.105 (colored)

from zhuk: clarify "set --";

Revision 1.105 / (download) - annotate - [select for diffs], Sun Mar 15 15:54:35 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

from zhuk: remove ambiguity around the false/true description;

Revision 1.104 / (download) - annotate - [select for diffs], Sun Mar 15 11:45:07 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

from zhuk: remove ambiguity in the description of "continue";

Revision 1.103 / (download) - annotate - [select for diffs], Sun Mar 15 11:15:55 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.102: +8 -5 lines
Diff to previous 1.102 (colored)

from zhuk: the dash part of "cd -" is not a flag, so don;t show it as such;
posix actually uses a separate synopsis to show this form, but i've chosen
to show it as a special form of "dir";

Revision 1.102 / (download) - annotate - [select for diffs], Sat Mar 14 18:54:50 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.101: +14 -14 lines
Diff to previous 1.101 (colored)

from zhuk: be clearer about not all options having long name equivalents and
lowercase the first letter of these names since that is the form accepted;

Revision 1.101 / (download) - annotate - [select for diffs], Sat Mar 14 08:13:52 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.100: +2055 -3865 lines
Diff to previous 1.100 (colored)

rewrite of sh(1). this page tries to confine itself to document features
supported by posix compliant shells (obviously ksh(1) still documents the
works).

still needs work, so please do mail me diffs or feedback;

Revision 1.100 / (download) - annotate - [select for diffs], Fri Jan 16 15:32:32 2015 UTC (9 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.99: +5 -5 lines
Diff to previous 1.99 (colored)

remove useless escaping; mandoc warned about some of this

Revision 1.99 / (download) - annotate - [select for diffs], Tue Dec 9 15:37:13 2014 UTC (9 years, 5 months ago) by schwarze
Branch: MAIN
Changes since 1.98: +6 -2 lines
Diff to previous 1.98 (colored)

put back some information what the character classes actually mean;
while here, remove the lie that regex(3) character classes would
depend on the locale;
ok jmc@

Revision 1.98 / (download) - annotate - [select for diffs], Tue Dec 9 14:39:37 2014 UTC (9 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.97: +2 -4 lines
Diff to previous 1.97 (colored)

no more ctype(3);

Revision 1.97 / (download) - annotate - [select for diffs], Sun Aug 17 07:15:41 2014 UTC (9 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.96: +7 -7 lines
Diff to previous 1.96 (colored)

update the built-ins list:
- "times" is both promoted to posix and special (ooh!)
- "pwd" is promoted to posix, but not special (aah!)

while here, jiggle the text somewhat to clarify that "non-POSIX"
actually meant when posix mode is off, not mandated by posix

joint work with guenther

Revision 1.96 / (download) - annotate - [select for diffs], Wed Feb 12 16:28:13 2014 UTC (10 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.95: +18 -7 lines
Diff to previous 1.95 (colored)

missing .An macros, based on a patch from Jan Stary <hans at stare dot cz>

Revision 1.95 / (download) - annotate - [select for diffs], Tue Jan 28 14:16:59 2014 UTC (10 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.94: +14 -11 lines
Diff to previous 1.94 (colored)

update book references;
From: Jan Stary
tweaked a bit by myself

Revision 1.94 / (download) - annotate - [select for diffs], Thu Jun 13 19:43:09 2013 UTC (10 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.93: +7 -4 lines
Diff to previous 1.93 (colored)

Document correct interaction of -e flag with && and ||.  OK jmc@

Revision 1.93 / (download) - annotate - [select for diffs], Thu Jan 17 21:20:25 2013 UTC (11 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.92: +2 -3 lines
Diff to previous 1.92 (colored)

remove some uesless Pp;

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jun 19 16:41:00 2012 UTC (11 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored)

for arithmetic expressions, note that:
+A parameter that is NULL or unset evaluates to 0.

original diff from robert peichaer
this version from naddy

Revision 1.91 / (download) - annotate - [select for diffs], Sat Sep 3 22:59:08 2011 UTC (12 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.90: +7 -7 lines
Diff to previous 1.90 (colored)

make -column lists pretty again;

specifically, rewrite them to permit some markup in the column headers,
and use "Ta" instead of literal tabs; mandoc does not currently match groff
100%, but a mandoc fix may be some time off, and we've gone enough releases
with poorly formatting column lists.

in some cases i have rewritten the lists as -tag, where -column made
little sense.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Apr 23 10:14:59 2011 UTC (13 years, 1 month ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.89: +3 -8 lines
Diff to previous 1.89 (colored)

improve line breaking in SYNOPSIS now that semantics of the .Bk macro
has changed to conform with modern groff releases.

diff for route6d(8) written mostly by schwarze@, with lots of useful
advice from jmc@.

ok jmc@, schwarze@

Revision 1.89 / (download) - annotate - [select for diffs], Mon Sep 20 07:41:17 2010 UTC (13 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.88: +7 -7 lines
Diff to previous 1.88 (colored)

according to ingo, it isn;t a problem to have empty [BDS]q macros, so
revert that part of yesterday's diffs;

Revision 1.88 / (download) - annotate - [select for diffs], Sat Sep 18 19:25:05 2010 UTC (13 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.87: +27 -18 lines
Diff to previous 1.87 (colored)

some macro cleanup:
- remove some old groff workarounds in SYNOPSIS
- avoid "Op ... Oc" constructions
- avoid empty Sq/Dq
- change some incorrect Xr

Revision 1.87 / (download) - annotate - [select for diffs], Thu Jul 15 20:04:35 2010 UTC (13 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

When the first argument or arguments of a macro are opening delimiters
(parentheses and/or square brackets), both modern groff and mandoc first
output those leading delimiters as plain text, then start the macro scope
after these opening delimiters.  This is similar to printing trailing
punctuation and trailing closing delimiters on a macro line outside and
after the macro scope.  For example, ".Sq ( text )" is "(`text')",
not "`(text)'".  Thus, we now need to quote leading opening delimiters
when we want them inside the macro scope.
These are the cases in src/bin.

"makes sense" jmc@

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 12 16:26:45 2010 UTC (13 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.85: +126 -5 lines
Diff to previous 1.85 (colored)

ksh.1: add ((, )), ]], and `name' to the list of reserved words for compounds
sh.1: add ]] and `name' to the list; additionally document the commands
`select' (requested by Ross L Richardson) and [[

ok millert sobrado

Revision 1.85 / (download) - annotate - [select for diffs], Mon May 10 21:04:54 2010 UTC (14 years ago) by jmc
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

tweak previous;

Revision 1.84 / (download) - annotate - [select for diffs], Mon May 10 18:28:21 2010 UTC (14 years ago) by kili
Branch: MAIN
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

unset doesn't fail except for read-only variables and functions

ok guenther@

Revision 1.83 / (download) - annotate - [select for diffs], Thu Feb 25 13:45:54 2010 UTC (14 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.82: +4 -4 lines
Diff to previous 1.82 (colored)

get rid of overlapping blocks discouraged by mdoc.samples(7);
found by and unbreaking the build with mandoc(1);
"fine" jmc@ sobrado@

Revision 1.82 / (download) - annotate - [select for diffs], Fri Mar 6 12:28:36 2009 UTC (15 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.81: +20 -3 lines
Diff to previous 1.81 (colored)

after some discussion with millert, pull in the character class info
from glob(7) to the shell pages - they have their own glob stuff,
and pointing to glob(7) is just not helpful.

ok millert

Revision 1.81 / (download) - annotate - [select for diffs], Thu Mar 5 15:13:30 2009 UTC (15 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

Add glob(7) and refer to it.  OK jmc@ sobrado@

Revision 1.80 / (download) - annotate - [select for diffs], Tue Mar 3 20:01:01 2009 UTC (15 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.79: +3 -6 lines
Diff to previous 1.79 (colored)

Add POSIX character class support ([:alpha:] and friends) to ksh globbing.
OK deraadt@ krw@ jmc@ sobrado@

Revision 1.79 / (download) - annotate - [select for diffs], Sat Feb 7 23:15:28 2009 UTC (15 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.78: +5 -4 lines
Diff to previous 1.78 (colored)

some tweaks for previous that got missed;

Revision 1.78 / (download) - annotate - [select for diffs], Sat Feb 7 07:24:37 2009 UTC (15 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.77: +16 -2 lines
Diff to previous 1.77 (colored)

Make built-in echo behave according to POSIX when set -o posix is in effect:
the only option is -n, and only one of those is parsed.

diff from Ingo Schwarze
ok otto@ kili@; manpage changes ok jmc@

Revision 1.77 / (download) - annotate - [select for diffs], Thu Jan 29 23:27:26 2009 UTC (15 years, 4 months ago) by jaredy
Branch: MAIN
Changes since 1.76: +4 -3 lines
Diff to previous 1.76 (colored)

pass "xerrok" status across the execution call stack to more closely
match what both POSIX and ksh.1 already describe in regards to set
-e/errexit's behavior in determining when to exit from nonzero return
values.

specifically, the truth values tested as operands to `&&' and `||', as
well as the resulting compound expression itself, along with the truth
value resulting from a negated command (i.e. a pipeline prefixed `!'),
should not make the shell exit when -e is in effect.

issue reported by matthieu.
testing matthieu, naddy.
ok miod (earlier version), otto.
man page ok jmc.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Mar 21 12:51:19 2008 UTC (16 years, 2 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.75: +6 -11 lines
Diff to previous 1.75 (colored)

Make ulimit able to get and set multiple limits in a single invocation
like bash and zsh do.  Requested by espie@, OK deraadt@

Revision 1.75 / (download) - annotate - [select for diffs], Thu May 31 20:47:44 2007 UTC (17 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.74: +4 -3 lines
Diff to previous 1.74 (colored)

Only process ENV when in interactive mode as SU says. Started by
tedu to fix make -j, SU thing spotted by naddy@; ok millert@ @tedu
jmc@ for the man page bit.

Revision 1.74 / (download) - annotate - [select for diffs], Thu May 31 19:19:14 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

convert to new .Dd format;

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jul 26 10:13:25 2006 UTC (17 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.72: +5 -3 lines
Diff to previous 1.72 (colored)

clarifications for OPTIND:

hunk #1 from tamas tevesz;
hunk #2 from otto;

ok otto

Revision 1.72 / (download) - annotate - [select for diffs], Tue Mar 7 09:31:01 2006 UTC (18 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.71: +7 -9 lines
Diff to previous 1.71 (colored)

simplify the description of what a restricted shell is:
sh.1 does not need to talk about rksh;
ksh.1 does not need to talk about rsh;
also references to rpdksh are not really helpful;

from tamas tevesz;
ok jaredy

Revision 1.71 / (download) - annotate - [select for diffs], Fri Oct 7 09:17:38 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.70: +1 -18 lines
Diff to previous 1.70 (colored)

remove mknod documentation - although /bin/sh supports it, this page
documents a posix shell (as far as possible);

ok otto@

Revision 1.70 / (download) - annotate - [select for diffs], Thu Oct 6 06:39:36 2005 UTC (18 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.69: +18 -1 lines
Diff to previous 1.69 (colored)

Introducing mknod as a built-in. It might be against the unix
philosophy, but in this case it's worth it. ok deraadt@

Revision 1.69 / (download) - annotate - [select for diffs], Wed Sep 7 07:38:51 2005 UTC (18 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (colored)

LINES and \\ in PS1 prompt are implemented, so remove information
which says they are not;

from matthias kilian (pr #4476);
ok otto@

Revision 1.68 / (download) - annotate - [select for diffs], Sun Aug 21 17:40:42 2005 UTC (18 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.67: +6 -6 lines
Diff to previous 1.67 (colored)

Comment out description for 'ulimit -v' since we don't support
RLIMIT_VMEM / RLIMIT_AS at the moment.  Support for those may
go in post-3.8.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Jun 1 03:32:05 2005 UTC (19 years ago) by jaredy
Branch: MAIN
Changes since 1.66: +2 -1 lines
Diff to previous 1.66 (colored)

add missing detail from IFS example

Originally from TAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>
from PR 4220

reminded by jmc

Revision 1.66 / (download) - annotate - [select for diffs], Thu May 12 09:18:24 2005 UTC (19 years ago) by jmc
Branch: MAIN
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored)

.Xr script 7

Revision 1.65 / (download) - annotate - [select for diffs], Fri Feb 18 09:01:49 2005 UTC (19 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

sort options to echo builtin;

Revision 1.64 / (download) - annotate - [select for diffs], Tue Feb 8 17:39:32 2005 UTC (19 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.63: +7 -7 lines
Diff to previous 1.63 (colored)

use command prompts and literal for commands;

Revision 1.63 / (download) - annotate - [select for diffs], Tue Feb 8 17:28:52 2005 UTC (19 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.62: +1023 -1124 lines
Diff to previous 1.62 (colored)

big overhaul of these pages, to make them clearer to read;
various other issues fixed along the way;

lots of stuff from jaredy@ in here too..

Revision 1.62 / (download) - annotate - [select for diffs], Sat Feb 5 12:36:21 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.61: +8 -1 lines
Diff to previous 1.61 (colored)

note that symlinks in test file are followed, except -h and -L
(just like test(1) does);

from paul de weerd;

Revision 1.61 / (download) - annotate - [select for diffs], Wed Feb 2 07:53:01 2005 UTC (19 years, 4 months ago) by otto
Branch: MAIN
Changes since 1.60: +14 -1 lines
Diff to previous 1.60 (colored)

Introduce POSIX hex and octal (0x... and 0...) constants in arithmetic
expressions.  Work by Matthias Kilian, based on an old diff by myself.
Note: MAKEDEV should be updated. Tested by many, thanks.

ok millert@ deraadt@

Revision 1.60 / (download) - annotate - [select for diffs], Fri Jan 21 15:15:55 2005 UTC (19 years, 4 months ago) by otto
Branch: MAIN
Changes since 1.59: +5 -1 lines
Diff to previous 1.59 (colored)

fix missing list item: *(...); spotted by Frank Sander frksndr at
gmx dot de. ok jmc@

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jan 17 09:59:02 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

typo;

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 10 11:06:50 2005 UTC (19 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

typo;

Revision 1.57 / (download) - annotate - [select for diffs], Wed Dec 22 18:58:44 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.56: +2 -29 lines
Diff to previous 1.56 (colored)

These man pages are not derived from UCB and are actually public domain.
Verified with aaron@ who did the conversion from man -> mdoc.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 22 18:48:56 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.55: +8 -3 lines
Diff to previous 1.55 (colored)

Our times(3) just calls getrusage(2) and gettimeofday(2), converting seconds
to ticks.  Since ksh needs things in seconds it then converted them back.
Avoid the silliness and use the getrusage(2) and gettimeofday(2) directly.
With man page help from jmc@

Revision 1.55 / (download) - annotate - [select for diffs], Sun Dec 12 17:37:45 2004 UTC (19 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

escape punctuation;

Revision 1.54 / (download) - annotate - [select for diffs], Sun Dec 12 06:53:13 2004 UTC (19 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.53: +7 -1 lines
Diff to previous 1.53 (colored)

csh-style ! history completion, which can be activated by using
	set -o csh-history (off by default)
this is not feature complete, and likely never will be.  no ^
and ! has some oddities ... ksh's internal history stuff has got
some very odd behaviours that are rather nasty
ok various developers

Revision 1.53 / (download) - annotate - [select for diffs], Fri Dec 10 01:56:56 2004 UTC (19 years, 5 months ago) by jaredy
Branch: MAIN
Changes since 1.52: +109 -98 lines
Diff to previous 1.52 (colored)

flurry of updates:
- be more consistent w.r.t. variables in macros with `.Ic'
  instead of `.Va'
- document changes in IFS parsing
- minimize diffs between ksh.1tbl and sh.1tbl w.r.t. `.Nm'
  macros and in other places
- sort recognized keywords and remove dependency on tbl(1)
- indent example displays
- kill `bind'
- collapse `test' display, it has two entries for `str',
  and use different args for file time tests
- grammar, punctuation, and mdoc fixes
- tidy display of `alias' and `kill'

ok and bits from jmc

Revision 1.52 / (download) - annotate - [select for diffs], Tue Nov 9 21:56:54 2004 UTC (19 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.51: +15 -3 lines
Diff to previous 1.51 (colored)

/bin/sh supports PS1 expansion;

Revision 1.51 / (download) - annotate - [select for diffs], Fri Nov 5 14:56:31 2004 UTC (19 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.50: +11 -10 lines
Diff to previous 1.50 (colored)

incorrect markup was messing the description of IFS. i've rearranged it
slightly so that no one (me, most likely) falls for it again.

also, make sh(1)'s IFS description a little more consistent.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Oct 28 04:55:52 2004 UTC (19 years, 7 months ago) by jaredy
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

fix spacing after period at EOL.  from ray@cyth.net

Revision 1.49 / (download) - annotate - [select for diffs], Sat Aug 7 16:46:58 2004 UTC (19 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.48: +5 -1 lines
Diff to previous 1.48 (colored)

Document ulimit -v; mickey@ OK

Revision 1.48 / (download) - annotate - [select for diffs], Wed Aug 4 20:01:44 2004 UTC (19 years, 10 months ago) by jaredy
Branch: MAIN
Changes since 1.47: +61 -38 lines
Diff to previous 1.47 (colored)

- mdoc and macro fixes and simplification
- punctuation and grammar fixes
- show prompts for example shell commands

help and ok jmc

Revision 1.47 / (download) - annotate - [select for diffs], Mon Mar 15 08:56:56 2004 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.46: +3 -3 lines
Diff to previous 1.46 (colored)

missing commas;

Revision 1.46 / (download) - annotate - [select for diffs], Mon Mar 15 08:52:12 2004 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

reversed word -> reserved word;
from Karl O. Pinc

Revision 1.45 / (download) - annotate - [select for diffs], Thu Feb 19 22:20:05 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

escape full stops where necessary to kill erroneous double spaces;
softly, softly, catchy monkey...

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 23 23:08:45 2004 UTC (20 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.43: +14 -14 lines
Diff to previous 1.43 (colored)

`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))
discussed with todd@

Revision 1.43 / (download) - annotate - [select for diffs], Thu Jan 15 22:08:45 2004 UTC (20 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored)

escape full stops properly to avoid double spaces;

Revision 1.42 / (download) - annotate - [select for diffs], Sat Dec 27 20:52:22 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

this page documents `sh', not `ksh';

Revision 1.41 / (download) - annotate - [select for diffs], Sat Dec 27 20:35:12 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.40: +6 -6 lines
Diff to previous 1.40 (colored)

- revert a typo introduced when this page was mdoc'ed
- use .Sq rather than .Dq for single letters

Revision 1.40 / (download) - annotate - [select for diffs], Mon Dec 22 11:54:02 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.39: +14 -1 lines
Diff to previous 1.39 (colored)

note that `&&' and `||' are left-associative;
from vax at carolina dot rr com (NetBSD PR 23814);

agreed (in principal) millert@ deraadt@

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 12 22:35:08 2003 UTC (20 years, 5 months ago) by naddy
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

typo; ok jmc@

Revision 1.38 / (download) - annotate - [select for diffs], Tue Oct 28 15:20:32 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.37: +14 -14 lines
Diff to previous 1.37 (colored)

standard section order;

Revision 1.37 / (download) - annotate - [select for diffs], Wed Oct 22 19:57:32 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.36: +5 -2 lines
Diff to previous 1.36 (colored)

macros with too many args;

Revision 1.36 / (download) - annotate - [select for diffs], Thu Sep 4 14:21:43 2003 UTC (20 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

escapes in the wrong place;

Revision 1.35 / (download) - annotate - [select for diffs], Tue Sep 2 18:09:43 2003 UTC (20 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.34: +10 -10 lines
Diff to previous 1.34 (colored)

escape punctuation;
ok deraadt@

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jul 7 14:11:58 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.33: +14 -17 lines
Diff to previous 1.33 (colored)

- convert some lists to displays
- .Ql -> .Sq where necessary
- remove some .Pp's before lists
- add missing .El
- remove some wrong macros

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 2 23:32:08 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.32: +2 -6 lines
Diff to previous 1.32 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 28 06:27:36 2003 UTC (21 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.31: +8 -8 lines
Diff to previous 1.31 (colored)

typos;

suggestions, corrections and ok millert@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 14 11:05:55 2003 UTC (21 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.30: +9 -6 lines
Diff to previous 1.30 (colored)

better document how getopts handles options;
plus typos;
from J.A. Neitzel;

Fixes PR 3141;
ok millert@

Revision 1.30 / (download) - annotate - [select for diffs], Wed Sep 18 07:33:47 2002 UTC (21 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

fix Xr refs; frisco@blackant.net

Revision 1.29 / (download) - annotate - [select for diffs], Sat May 4 22:21:21 2002 UTC (22 years, 1 month ago) by krw
Branch: MAIN
Changes since 1.28: +69 -1 lines
Diff to previous 1.28 (colored)

Clean up the logic in install_url():

a) Eliminate extraneous cat invocations that are piped to
   grep by simply calling grep with the file name.
b) Eliminate the only use of isnumeric() by using a ksh'ism
   left exposed in sh: '+([0-9])'. Eliminate isnumeric().
c) Test for a http/ftp list index of '0' and treat as an out
   of range error rather than an IP address.
d) Reorganize to make smaller and more clear.

Add documentation to sh(1) for ksh patterns that are available.

ok millert@, miod@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 2 14:05:58 2001 UTC (22 years, 9 months ago) by aaron
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Typo; addresses pr/2038 from tim@robbins.dropbear.id.au

Revision 1.27 / (download) - annotate - [select for diffs], Sat Aug 25 21:26:29 2001 UTC (22 years, 9 months ago) by heko
Branch: MAIN
Changes since 1.26: +1 -10 lines
Diff to previous 1.26 (colored)

OpenBSD doesn't have RLIMIT_VMEM or RLIMIT_SWAP, so we don't
have ulimit -v or -w either.
ok millert@

Revision 1.26 / (download) - annotate - [select for diffs], Thu Aug 23 05:21:51 2001 UTC (22 years, 9 months ago) by pvalchev
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

fix a typo; tim@robbins.dropbear.id.au

Revision 1.25 / (download) - annotate - [select for diffs], Fri Aug 3 19:19:01 2001 UTC (22 years, 10 months ago) by aaron
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Typo; heko@iki.fi

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 31 10:35:10 2001 UTC (22 years, 10 months ago) by hugh
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Documentation fixes per PR 1979 by Kaspar Toomik.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 23 14:42:13 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +5 -3 lines
Diff to previous 1.22 (colored)

more .%A handling; bk@rt.fm

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 28 15:36:08 2001 UTC (23 years ago) by aaron
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Various fixes; mpech@prosoft.org.lv

Revision 1.21 / (download) - annotate - [select for diffs], Thu Apr 12 02:51:10 2001 UTC (23 years, 1 month ago) by aaron
Branch: MAIN
Changes since 1.20: +8 -8 lines
Diff to previous 1.20 (colored)

Insert some missing commas.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Oct 19 18:29:28 2000 UTC (23 years, 7 months ago) by aaron
Branch: MAIN
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

Where we talk about $$, also say mention that PIDs are not safe to use for
generating temporary file names, and point people to mktemp(1) instead.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 21 14:06:55 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Sometimes it is confusing when a sentence begins with lowercase; d@

Revision 1.18 / (download) - annotate - [select for diffs], Fri Mar 17 18:48:43 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.17: +35 -21 lines
Diff to previous 1.17 (colored)

Try to synchronize the ksh(1) and sh(1) man pages somewhat.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Mar 17 18:15:16 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.16: +562 -346 lines
Diff to previous 1.16 (colored)

Remove hard sentence breaks.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jul 5 19:50:53 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.15: +52 -26 lines
Diff to previous 1.15 (colored)

mdoc'ify syntax of the more complicated commands; when I converted this man
page originally, I didn't know how to do such funky things

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 1 17:48:29 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

remove trailing spaces; missed from a previous commit

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:35 1999 UTC (24 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.13: +9 -2 lines
Diff to previous 1.13 (colored)

patches from pdksh 5.2.13.11

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jun 14 03:13:59 1999 UTC (24 years, 11 months ago) by pjanzen
Branch: MAIN
Changes since 1.12: +197 -105 lines
Diff to previous 1.12 (colored)

Fixed a bunch of typos, grammar errors, and unclear wording in the sh
man page, and the corresponding problems in the ksh page.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 3 09:50:32 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

use the hyphenated form "command-line" in the case of a compound adjective;
pjanzen@

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 30 17:44:56 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.10: +168 -159 lines
Diff to previous 1.10 (colored)

repairs

Revision 1.10 / (download) - annotate - [select for diffs], Fri May 28 12:23:06 1999 UTC (25 years ago) by aaron
Branch: MAIN
Changes since 1.9: +153 -153 lines
Diff to previous 1.9 (colored)

be more conservative with the .Dq macro; in particular, use .Sq macros most of
the time instead when quoting 1-2 characters (makes it much easier to read);
based on a patch received awhile ago from d@

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 2 23:46:54 1999 UTC (25 years, 3 months ago) by aaron
Branch: MAIN
Changes since 1.8: +3323 -2327 lines
Diff to previous 1.8 (colored)

Finally, new and improved mandoc ksh/sh man pages. This took hours, and hours,
and hours... Someone please read it and find any typos I may have missed.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 19 20:41:55 1999 UTC (25 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Updates from pdksh-unstable-5.2.13.7.  Most notable change is:
    trap: exit traps now executed in subshells (without explicit exit call).
See the Changelog for a full list of changes.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 29 04:09:21 1998 UTC (25 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.6: +6 -4 lines
Diff to previous 1.6 (colored)

Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of
some that we had already fixed locally.
 o typeset -f FUNC doesn't print follows command (and expression) substitutions.
 o when re-allocating memory, too much may be copied from old memory.
 o set -o printed some options sans names.
 o emacs mode: <esc>. in very fist command causes core dump.
 o pdksh dumps core after a cd command.
 o typeset -i reports on array elements that have no value
   (at&t ksh reports on array base name - no index).
 o ulimit -ctn unlimittttted kills shell (resource exceeded).
 o ". /dev/null" says access denied.
 o flag field in aliases incorrectly changed (all flags set instead of
   clearing ISSET) in exec.c(flushcom).
 o ${#array[*]} prints largest index instead of number of (set) elements
   in an array (ksh88 does the former).
 o sys_siglist[] doesn't always have NSIG non-null entries...

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 24 20:50:04 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

fix spelling of separate; aaron@ug.cs.dal.ca

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jun 25 19:02:17 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.4: +55 -24 lines
Diff to previous 1.4 (colored)

pdksh-5.2.13 + local changes

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 18 03:04:56 1998 UTC (26 years, 2 months ago) by marc
Branch: MAIN
Changes since 1.3: +10 -6 lines
Diff to previous 1.3 (colored)

Document what sh/ksh does when the cd command matches a non empty path
in the CDPATH environment variable.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 5 21:49:56 1997 UTC (26 years, 10 months ago) by grr
Branch: MAIN
Changes since 1.2: +20 -6 lines
Diff to previous 1.2 (colored)

Fixes for a variety of pdksh problems:

1) pkksh in sh mode closed fd's other than [012] on exec'ing a command.
	this is a ksh'ism and POSIX sates that open files are part of the
	environment to be passed to the new process.

2) pdksh in sh mode interpets (( as meaning the start of arithmetic
	"quoting", which is incompatible with it's usage as a nested
	sub-shell invocation.  The $(( form for arithmetic substitution
	is stil valid, however.
	PR user/59 millert@openbsd.org (Todd C. Miller)

3) pdksh sh.1 manpage isn't explicit about the range of input text
	that is subject to field splitting after a substitution.
	PR user/236 Mathieu.Herrb@mipnet.fr (Mathiew Herrb)

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 2 17:41:47 1997 UTC (27 years, 5 months ago) by downsj
Branch: MAIN
Changes since 1.1: +1 -7 lines
Diff to previous 1.1 (colored)

Don't mention $_.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Nov 30 23:54:37 1996 UTC (27 years, 6 months ago) by downsj
Branch: MAIN

Install ksh as sh too.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.