OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [select for diffs], Wed Jun 21 22:22:08 2023 UTC (11 months, 2 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored)

ksh: escape control chars when displaying file name completions.
If there are multiple matches when using autocomplete, the list of
matching file names was output as-is.  However, for a single match,
control characters are escaped before the file name is displayed.
This makes the behavior more consistent by escaping control chars
in the list of matches too.  Discussed with deraadt@, OK op@

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jul 7 10:33:58 2020 UTC (3 years, 11 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Add support for set -o pipefail

With the pipefail option set, the exit status of a pipeline is 0 if all
commands succeed, or the return status of the rightmost command that
fails.  This can help stronger error checking, but is not a silver
bullet.  For example, commands will exhibit a non-zero exit status if
they're killed by a SIGPIPE when writing to a pipe.  Yet pipefail was
considered useful enough to be included in the next POSIX standard.

This implementation remembers the value of the pipefail option when
a pipeline is started, as described as option 1) in

  https://www.austingroupbugs.net/view.php?id=789#c4102

Requested by ajacoutot@, ok millert@

Revision 1.75 / (download) - annotate - [select for diffs], Wed Feb 20 23:59:17 2019 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored)

When evaluating an arithmetical expression, for example inside $(()),
never do substitution (neither parameter, nor command, nor arithmetic,
nor tilde substitution) on the values of any variables encountered
inside the expression, but do recursively perform arithmetical
evaluation of subexpressions as required.  This makes behaviour
more consistent, without hindering any behaviour promised in the
manual page.

A quirk originally reported by Andy Chu <andychup at gmail dot com>
was that in the past, when encountering an array index, the shell
would not only do evaluation, but also substitution on the array
index, even though substitution would not be done on the expression
in general.

tobias@ contributed to initial efforts of understanding the quirk.
patch tested in a bulk build by naddy@
"please commit" deraadt@

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 20 07:02:23 2018 UTC (5 years, 6 months ago) by martijn
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (colored)

Fix the case where the recursion detection isn't reset when the command is
interrupted.

Lots of back and forth with anton@
OK jca@, tb@, anton@

Revision 1.73 / (download) - annotate - [select for diffs], Fri May 18 13:25:20 2018 UTC (6 years ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

remove the alias type='whence -v' and replace it with
a buildin command, that just calls into c_whence().
This makes type look like the buildin in other shells and makes
things like system("'type' 'git'"); work.

With lots of suggestions and feedback from anton@, kn@ and jca@.
ok kn@ jca@

Revision 1.72 / (download) - annotate - [select for diffs], Mon Apr 9 17:53:36 2018 UTC (6 years, 2 months ago) by tobias
Branch: MAIN
Changes since 1.71: +7 -7 lines
Diff to previous 1.71 (colored)

Support 64 bit integers on 32 bit architectures.

No binary change on amd64 and there should be no differences on any
other 64 bit architecture either (because long = int64_t).

ok cheloha, tb

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jan 16 22:52:32 2018 UTC (6 years, 4 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.70: +5 -3 lines
Diff to previous 1.70 (colored)

Introduce internal_warningf() and mark internal_errorf() as noreturn

This helps tools like scan-build, and follows the example of warningf()
and errorf().  ok anton@

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jan 15 14:58:05 2018 UTC (6 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.69: +3 -9 lines
Diff to previous 1.69 (colored)

Stop pretending we support building ksh without EDIT/HISTORY support

ok anton@

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jan 14 16:04:21 2018 UTC (6 years, 4 months ago) by anton
Branch: MAIN
Changes since 1.68: +1 -3 lines
Diff to previous 1.68 (colored)

unifdef BRACE_EXPAND; ok jca@

Revision 1.68 / (download) - annotate - [select for diffs], Sat Jan 6 16:28:58 2018 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

Bring back the sign compare changes, this time with a fix from otto@
that fixes the issues seen on hppa.  OK deraadt@ otto@

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jan 5 15:44:31 2018 UTC (6 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.66: +1 -3 lines
Diff to previous 1.66 (colored)

unifdef JOBS support

Prompted by a mail from Klemens Nanni, who also had the same diff.
ok deraadt@ millert@

Revision 1.66 / (download) - annotate - [select for diffs], Wed Dec 27 13:02:57 2017 UTC (6 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

Add -Wshadow to Makefile and fix the resulting warnings.  Many of
the warnings are due to the use of globals with generic names,
specifically "options" and "path".  I've renamed "options" to
"sh_options" since it holds the shell options and "path" to
"search_path".  OK jca@ tb@

Revision 1.65 / (download) - annotate - [select for diffs], Thu Oct 19 07:54:05 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.64: +1 -2 lines
Diff to previous 1.64 (colored)

Delete the deprecated emacs-usemeta option.

ok tb@ anton@

Revision 1.64 / (download) - annotate - [select for diffs], Sun Sep 3 11:52:01 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Use PATH_MAX instead of a local define

okk deraadt@ millert@ anton@

Revision 1.63 / (download) - annotate - [select for diffs], Wed Aug 30 17:08:45 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.62: +2 -1 lines
Diff to previous 1.62 (colored)

Implement HISTCONTROL ignoredups & ignorespace features

ignoredups: don't save the current line if it is identical to the last
history line.
ignorespace: don't save the current line if it starts with a space

ok anton@ millert@

Revision 1.62 / (download) - annotate - [select for diffs], Wed Aug 30 17:02:53 2017 UTC (6 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Stop exposing the emacs-usemeta option, and warn when trying to set it.

Unused since 2012, to be removed after 6.2.  Input from anton@,
ok anton@ millert@

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jul 4 11:46:15 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored)

Backout previous due to a bug discovered by zhuk@ that requires some tinkering
and is not an easy fix for now.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jul 4 07:29:32 2017 UTC (6 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored)

Add support for pattern substitution to variables in ksh using a common syntax
borrowed from ksh93.

Survived a ports build performed by naddy@ and encouraged by many.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jun 29 16:49:58 2017 UTC (6 years, 11 months ago) by martijn
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Increase the input line buffer to 4096 bytes.

Sounds good to deraadt@
OK anton@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Sep 8 15:50:50 2016 UTC (7 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.57: +4 -3 lines
Diff to previous 1.57 (colored)

Add KSH_IGNORE_RDONLY flag and use it in var.c instead of the 0x4
magic number.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Mar 4 15:11:06 2016 UTC (8 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.56: +1 -4 lines
Diff to previous 1.56 (colored)

remove CSRG BSD-licensed mknod builtin code which was previously used to
accelerate install/upgrade time MAKEDEV runs.  That allows ramdisk ksh
to be pledged, without needing "dpath".  We'll solve the performance issues
a different way (soon).
ok otto espie natano tb tobiasu rpe

Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 30 09:07:00 2015 UTC (8 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

rename global "e" to genv to avoid accidental shadowing and aliasing.
ok millert nicm tb

Revision 1.55 / (download) - annotate - [select for diffs], Mon Dec 14 13:59:42 2015 UTC (8 years, 5 months ago) by tb
Branch: MAIN
Changes since 1.54: +1 -10 lines
Diff to previous 1.54 (colored)

Move system headers from sh.h to those files that actually need them.

ok mmcc@ a while ago

Revision 1.54 / (download) - annotate - [select for diffs], Fri Nov 20 09:29:53 2015 UTC (8 years, 6 months ago) by tb
Branch: MAIN
Changes since 1.53: +1 -2 lines
Diff to previous 1.53 (colored)

remove unused prototype

ok mmcc@

Revision 1.53 / (download) - annotate - [select for diffs], Thu Nov 12 04:04:31 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.52: +4 -4 lines
Diff to previous 1.52 (colored)

Use isdigit() instead of ksh's homebrewed alternative.

ok nicm@. Also discussed with millert@ and guenther@.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Nov 7 20:48:28 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Make it clearer that warningf()'s first argument determines whether the
lineno is printed.

ok nicm@

Revision 1.51 / (download) - annotate - [select for diffs], Sun Nov 1 15:38:53 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

Add uses of areallocarray(). mksh and Bitrig ksh already have similar
functions. With help from Theo Buehler.

ok nicm@

Revision 1.50 / (download) - annotate - [select for diffs], Fri Oct 23 01:33:36 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.49: +1 -3 lines
Diff to previous 1.49 (colored)

Remove two comments listing functionless files. Trivial, no functional
change.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Oct 23 01:14:07 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.48: +237 -2 lines
Diff to previous 1.48 (colored)

proto.h contains many function prototypes. It's apparently separate from
sh.h because the pdksh devs used a prototype generator (last run in
1992). Merging it into sh.h makes things clearer.

ok nicm@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Oct 22 15:37:04 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.47: +8 -24 lines
Diff to previous 1.47 (colored)

Final removal of EXTERN.

ok nicm@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Oct 21 14:30:43 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.46: +12 -12 lines
Diff to previous 1.46 (colored)

Penultimate commit to remove EXTERN.

ok nicm@

Revision 1.46 / (download) - annotate - [select for diffs], Mon Oct 19 17:15:53 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.45: +1 -2 lines
Diff to previous 1.45 (colored)

Remove the define NOT, replace it with '!'. No binary change.

"The ^ is used in regular expressions and many versions of fnmatch(3)
accept both ! and ^. However, we are never going to accept ^ instead of
! so I think this makes sense" -millert@

"go for it" -nicm@

Revision 1.45 / (download) - annotate - [select for diffs], Mon Oct 19 17:10:53 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

A little style(9) for sh.h includes

ok nicm@

Revision 1.44 / (download) - annotate - [select for diffs], Mon Oct 19 14:43:46 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Move stddef.h include from sh.h to the file that uses it.

ok nicm@

Revision 1.43 / (download) - annotate - [select for diffs], Mon Oct 19 14:42:16 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.42: +1 -2 lines
Diff to previous 1.42 (colored)

Move string.h include from sh.h to the files that use it.

ok nicm@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 19 14:03:21 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.41: +1 -2 lines
Diff to previous 1.41 (colored)

Move limits.h include from sh.h to the files that actually need it. No
binary change.

ok nicm@

Revision 1.41 / (download) - annotate - [select for diffs], Mon Oct 19 14:01:37 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.40: +6 -5 lines
Diff to previous 1.40 (colored)

More removal of EXTERN.

ok nicm@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Oct 18 18:05:35 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.39: +9 -9 lines
Diff to previous 1.39 (colored)

Move more EXTERN-defined globals from sh.h.

ok nicm@

Revision 1.39 / (download) - annotate - [select for diffs], Sat Oct 17 18:43:22 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.38: +1 -4 lines
Diff to previous 1.38 (colored)

Drop two useless defines.

ok nicm@

Revision 1.38 / (download) - annotate - [select for diffs], Sat Oct 17 18:26:24 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.37: +1 -3 lines
Diff to previous 1.37 (colored)

Move a system header include from the global header (sh.h) into the
files that need it. No binary change.

"This looks fine" -nicm@

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 14 16:08:50 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.36: +2 -5 lines
Diff to previous 1.36 (colored)

Replace Tflag typedef with just int; ok tedu

Revision 1.36 / (download) - annotate - [select for diffs], Mon Sep 14 09:42:33 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.35: +3 -1 lines
Diff to previous 1.35 (colored)

Apply the ancient art of tedu to ksh_limval.h. ok guenther

Revision 1.35 / (download) - annotate - [select for diffs], Thu Sep 10 22:48:58 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored)

Replace newline and space defines by "\n" and " " directly, from Michael
McConville. ok millert

Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 10 13:04:52 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.33: +3 -9 lines
Diff to previous 1.33 (colored)

Remove INT32 define and just use int, from Martijn van Duren and Michael
McConville. ok deraadt

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 18 13:53:12 2013 UTC (10 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

Remove artificial limit on the max array index.
Adapted from a bitrig commit from Martin Natano.
OK zhuk@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 28 10:33:37 2013 UTC (10 years, 6 months ago) by sobrado
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

remove trailing whitespaces; use tabs instead of spaces where appropriate;
no binary changes.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Sep 10 01:25:30 2012 UTC (11 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.30: +2 -1 lines
Diff to previous 1.30 (colored)

fake a sigwinch after each job, so if the terminal changes size,
we'll notice and update

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jan 4 18:07:11 2010 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Crank max array size in ksh to 10K-1, since 2047 is too restrictive.
Please keep in mind that ksh accesses are not O(1) in any sense.
Needed by todd, ok otto, guenther

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 18:53:51 2005 UTC (18 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

remove unused variables and functions

Revision 1.28 / (download) - annotate - [select for diffs], Tue Oct 4 20:35:11 2005 UTC (18 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Bump max array size. Needed for upcoming MAKEDEV speedup. ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 28 21:33:04 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.26: +7 -7 lines
Diff to previous 1.26 (colored)

spacing

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 21 16:01:58 2005 UTC (19 years, 3 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Set \u in prompt expansion to the right value, while avoiding getpw* calls,
which might be very inconvenient when the yp server is not available.

ok deraadt@ millert@

Revision 1.25 / (download) - annotate - [select for diffs], Wed Dec 22 17:14:34 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.24: +2 -5 lines
Diff to previous 1.24 (colored)

Use stdbool.h instead of rolling our own bools.

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

Use _PATH_BSHELL instead of hardcoding "/bin/sh"

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 18 22:11:43 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.22: +5 -5 lines
Diff to previous 1.22 (colored)

Flags set in signal handlers should be volatile sig_atomic_t

Revision 1.22 / (download) - annotate - [select for diffs], Sat Dec 18 21:58:39 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.21: +3 -10 lines
Diff to previous 1.21 (colored)

Use the BSD sig_t instead of homegrown handler_t
Remove KSH_SA_FLAGS

Revision 1.21 / (download) - annotate - [select for diffs], Sat Dec 18 21:04:52 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.20: +1 -5 lines
Diff to previous 1.20 (colored)

Get rid of #ifdef KSH since we don't care about building a V7 style sh and
the #ifdef KSH code is required to make a POSIX sh.  From Matthias Kilian

Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 18 20:55:52 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.19: +19 -314 lines
Diff to previous 1.19 (colored)

Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.
First step in making the ksh code easier to read.  From Matthias Kilian

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 12 06:53:13 2004 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Mon May 31 10:36:35 2004 UTC (20 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Remove redundant errno declaration. ok deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 10 16:28:47 2004 UTC (20 years, 1 month ago) by pvalchev
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

double the command line buffer size (1024 -> 2048); ok millert deraadt

Revision 1.16 / (download) - annotate - [select for diffs], Sun Feb 8 19:18:15 2004 UTC (20 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.15: +1 -9 lines
Diff to previous 1.15 (colored)

forget about 16 bit machines; millert ok

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 22 07:40:38 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.14: +5 -5 lines
Diff to previous 1.14 (colored)

typos from Jared Yanovich;
ok deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 1 15:47:40 2003 UTC (20 years, 9 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

In emacs editing mode, ksh by default interprets a set 8th bit as
meta prefix, i.e. all characters with the top bit set (>= 0x80) are
taken as commands and cannot be entered literally.

Introduce a new shell option, emacs-usemeta, that allows to toggle
this behavior.  The default is the traditional behavior; to enter
8-bit characters use "set +o emacs-usemeta".

ok fgsch@, henning@

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 16 19:58:57 2003 UTC (21 years, 1 month ago) by jsyn
Branch: MAIN
Changes since 1.12: +2 -13 lines
Diff to previous 1.12 (colored)

fix several constant overflows, remove the strerror prototype (shouldn't be
there), and cleanup some whitespace; help from, and okay millert@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Oct 7 23:09:32 2002 UTC (21 years, 8 months ago) by vincent
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

int -> uid_t

ok millert

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 1 13:13:54 2002 UTC (22 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

this is needed too

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 15 20:39:40 1999 UTC (24 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

o Set default line edit mode to emacs (VISUAL/EDITOR or user can override)
o Spell environment correctly

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:36 1999 UTC (25 years ago) by millert
Branch: MAIN
Changes since 1.8: +34 -16 lines
Diff to previous 1.8 (colored)

patches from pdksh 5.2.13.11

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 19 20:41:56 1999 UTC (25 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.7: +11 -6 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], Fri Jan 8 20:25:02 1999 UTC (25 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.6: +11 -1 lines
Diff to previous 1.6 (colored)

bug fixes from pdksh-unstable-5.2.13.5; some of which we already had.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 25 19:02:19 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.5: +10 -3 lines
Diff to previous 1.5 (colored)

pdksh-5.2.13 + local changes

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 2 09:34:10 1997 UTC (27 years, 5 months ago) by downsj
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.4: +2 -1 lines
Diff to previous 1.4 (colored)

Add FSH (set -o sh), initialize it if we're /bin/sh, and add the first use:
don't set $_ if we're non-interactive.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 18 18:28:37 1996 UTC (27 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Up limit of available user file descriptors (e.g. for redirections) to 32

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 1 02:05:47 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
Changes since 1.2: +9 -1 lines
Diff to previous 1.2 (colored)

Integrate pdksh 5.2.9.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 19 20:08:58 1996 UTC (27 years, 9 months ago) by downsj
Branch: MAIN
Changes since 1.1: +32 -14 lines
Diff to previous 1.1 (colored)

update to pdksh-5.2.8

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Aug 14 06:19:11 1996 UTC (27 years, 10 months ago) by downsj
Branch: pdksh
CVS Tags: pdksh-527
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

Import pdksh 5.2.7.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Aug 14 06:19:11 1996 UTC (27 years, 10 months ago) by downsj
Branch: MAIN

Initial revision

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.