[go: up one dir, main page]

OpenBSD CVS

CVS log for src/bin/ksh/misc.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.78 / (download) - annotate - [select for diffs], Fri Dec 24 22:08:37 2021 UTC (3 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE, OPENBSD_7_7, OPENBSD_7_6_BASE, OPENBSD_7_6, OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

when getopts prints "unknown option" or "requires argument", it should
not print the shell script line number where this occured.  Doing so is
pointless, or an information leak.
This change does not affect any other error reporting.
ok millert

Revision 1.77 / (download) - annotate - [select for diffs], Wed Dec 15 04:01:52 2021 UTC (3 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.76: +2 -2 lines
Diff to previous 1.76 (colored)

getcwd() operates on buffers of PATH_MAX including the NUL, and the +1
is not unneccesary. Different buffer sizes are actually dangerous, though
major problems are strangely rare.
ok millert

Revision 1.76 / (download) - annotate - [select for diffs], Mon Oct 26 18:16:51 2020 UTC (4 years, 7 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

In lib/libc/gen/charclass.h r1.3 guenther made cclasses const.
Mark the pointer used to walk the array in ksh const as well.

From Matthew Martin

ok guenther

Revision 1.75 / (download) - annotate - [select for diffs], Wed Jul 22 19:20:41 2020 UTC (4 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.74: +4 -1 lines
Diff to previous 1.74 (colored)

Collapse consecutive stars to avoid exponential behavior.
OK tb@

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jul 7 10:33:58 2020 UTC (4 years, 11 months ago) by jca
Branch: MAIN
Changes since 1.73: +2 -1 lines
Diff to previous 1.73 (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.73 / (download) - annotate - [select for diffs], Fri Jun 28 13:34:59 2019 UTC (5 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.72: +4 -4 lines
Diff to previous 1.72 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Nov 20 08:12:26 2018 UTC (6 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.71: +4 -3 lines
Diff to previous 1.71 (colored)

Convert the pledge call to idiomatic format 'cause we love grep.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Nov 16 06:41:58 2018 UTC (6 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.70: +8 -2 lines
Diff to previous 1.70 (colored)

Include "id" in pledge (for setres[ug]id, setgroups) if the shell is
privileged and remove it when dropping privileges (set +p), setting a
flag to make sure we don't do it again.

ok deraadt millert

Revision 1.70 / (download) - annotate - [select for diffs], Mon Apr 9 17:53:36 2018 UTC (7 years, 1 month ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (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.69 / (download) - annotate - [select for diffs], Thu Mar 15 16:51:29 2018 UTC (7 years, 2 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Favor usage of __func__ in warning/error messages. Some of them referred to the
wrong function and fix the rest for consistency.
Diff from Michael W. Bombardieri with some cosmetic cleanup applied.

ok benno@ tb@

Revision 1.68 / (download) - annotate - [select for diffs], Tue Jan 16 22:52:32 2018 UTC (7 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (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.67 / (download) - annotate - [select for diffs], Mon Jan 15 14:58:05 2018 UTC (7 years, 4 months ago) by jca
Branch: MAIN
Changes since 1.66: +9 -11 lines
Diff to previous 1.66 (colored)

Stop pretending we support building ksh without EDIT/HISTORY support

ok anton@

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

unifdef BRACE_EXPAND; ok jca@

Revision 1.65 / (download) - annotate - [select for diffs], Sat Jan 6 16:28:58 2018 UTC (7 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.64: +39 -37 lines
Diff to previous 1.64 (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.64 / (download) - annotate - [select for diffs], Fri Jan 5 15:44:31 2018 UTC (7 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.63: +1 -9 lines
Diff to previous 1.63 (colored)

unifdef JOBS support

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

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jan 4 19:06:16 2018 UTC (7 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.62: +37 -39 lines
Diff to previous 1.62 (colored)

Back out sign compare changes that appear to cause problems on hppa.
Requested by deraadt@

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jan 1 19:45:56 2018 UTC (7 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.61: +39 -37 lines
Diff to previous 1.61 (colored)

Add WARNINGS=yes to ksh and fix the resulting sign compare warnings.
OK tb@

Revision 1.61 / (download) - annotate - [select for diffs], Wed Dec 27 13:02:57 2017 UTC (7 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.60: +28 -28 lines
Diff to previous 1.60 (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.60 / (download) - annotate - [select for diffs], Thu Oct 19 07:54:05 2017 UTC (7 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.59: +2 -16 lines
Diff to previous 1.59 (colored)

Delete the deprecated emacs-usemeta option.

ok tb@ anton@

Revision 1.59 / (download) - annotate - [select for diffs], Wed Aug 30 17:15:36 2017 UTC (7 years, 9 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.58: +7 -1 lines
Diff to previous 1.58 (colored)

Guard FEMACSUSEMETA uses behind #ifdef EMACS

Revision 1.58 / (download) - annotate - [select for diffs], Wed Aug 30 17:02:53 2017 UTC (7 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.57: +14 -5 lines
Diff to previous 1.57 (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.57 / (download) - annotate - [select for diffs], Tue Jul 4 11:46:15 2017 UTC (7 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.56: +2 -15 lines
Diff to previous 1.56 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jul 4 07:29:32 2017 UTC (7 years, 11 months ago) by anton
Branch: MAIN
Changes since 1.55: +15 -2 lines
Diff to previous 1.55 (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.55 / (download) - annotate - [select for diffs], Sun Mar 20 00:01:21 2016 UTC (9 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])
idioms.

Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0)
where it is obvious further investigation will not yield and
even better way.

Obviousness evaluation and ok guenther@

Revision 1.54 / (download) - annotate - [select for diffs], Sun Mar 6 11:56:20 2016 UTC (9 years, 3 months ago) by natano
Branch: MAIN
Changes since 1.53: +5 -3 lines
Diff to previous 1.53 (colored)

Make set +o conform with POSIX.

It should be possible to use set +o to save the current shell options,
then modify them at will and later restore them to the saved value.
Therefore the output must not only contain the options which are
currently set, but also the ones that are _not_ set, so a restore
disables them if they are enabled.

from Martijn Dekker (martijn (at) inlv (dot) org)
ok sthen@, tb@

Revision 1.53 / (download) - annotate - [select for diffs], Mon Dec 21 04:57:50 2015 UTC (9 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Replace an ugly bit of pointer arithmetic with a conditional expression.

"seems sound" deraadt@

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

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

ok mmcc@ a while ago

Revision 1.51 / (download) - annotate - [select for diffs], Thu Nov 12 04:04:31 2015 UTC (9 years, 6 months ago) by mmcc
Branch: MAIN
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

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

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

Revision 1.50 / (download) - annotate - [select for diffs], Mon Oct 19 17:15:53 2015 UTC (9 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (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.49 / (download) - annotate - [select for diffs], Mon Oct 19 14:42:16 2015 UTC (9 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.48: +2 -1 lines
Diff to previous 1.48 (colored)

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

ok nicm@

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

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

ok nicm@

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 19 02:15:45 2015 UTC (9 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

Apply style(9) to header includes.

ok nicm@

Revision 1.46 / (download) - annotate - [select for diffs], Tue Sep 22 21:50:40 2015 UTC (9 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Make errorf() and bi_errorf() handle a NULL argument.
From Michael McConville; OK nicm@

Revision 1.45 / (download) - annotate - [select for diffs], Fri Sep 18 07:28:24 2015 UTC (9 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

Last of the (thing *)0 -> NULL, from Michael McConville. No binary
change.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 17 14:21:33 2015 UTC (9 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Remove unnecessary casts, from Michael McConville. No binary change.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Sep 15 18:15:05 2015 UTC (9 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.42: +11 -11 lines
Diff to previous 1.42 (colored)

correct spelling of NULL from (char *)0. from Michael McConville.
ok md5

Revision 1.42 / (download) - annotate - [select for diffs], Tue Sep 15 18:07:22 2015 UTC (9 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

stop abusing null (the variable) for an empty string in output formats.
from Michael McConville
ok nicm

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

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

Revision 1.40 / (download) - annotate - [select for diffs], Wed Mar 18 15:12:36 2015 UTC (10 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.39: +2 -5 lines
Diff to previous 1.39 (colored)

not necessary to work around an apparent bug on ancient freebsd

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:32 2015 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.38: +4 -5 lines
Diff to previous 1.38 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 28 10:33:37 2013 UTC (11 years, 6 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (download) - annotate - [select for diffs], Sun Apr 19 20:34:05 2009 UTC (16 years, 1 month ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, 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, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.36: +6 -2 lines
Diff to previous 1.36 (colored)

don't print extraneous padding characters when tab-completion file/command
lists encounter a name too long for the width of the terminal.

from Matthew Haub, no objections krw@.

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

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

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jan 17 22:06:44 2009 UTC (16 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.34: +5 -86 lines
Diff to previous 1.34 (colored)

Use libc qsort instead of private version.  Tested by several people.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jul 12 12:33:42 2008 UTC (16 years, 10 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Fix a strlcpy() bound.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Mar 21 12:51:19 2008 UTC (17 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.32: +9 -7 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Thu Aug 2 11:05:54 2007 UTC (17 years, 10 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.31: +1 -1 lines
Diff to previous 1.31 (colored)

backout last change; iff is right.
prompted by deraadt@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Aug 2 10:56:25 2007 UTC (17 years, 10 months ago) by fgsch
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

while i'm here: iff -> if

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 12 00:26:58 2006 UTC (19 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

might as well make ksh_getopt() match real getopt(), ie. get rid of that
stupid EOF concept that was never true.  adobriyan@gmail

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 6 10:44:10 2006 UTC (19 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.28: +6 -5 lines
Diff to previous 1.28 (colored)

convert permanent privilege revocation to use setresuid/setresgid;
ok henning@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Mar 30 17:16:37 2005 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.27: +62 -74 lines
Diff to previous 1.27 (colored)

lots of indentation cleanup, now ksh is readable like our other code.
double checked to make sure no binaries change, and eyed by niallo

Revision 1.27 / (download) - annotate - [select for diffs], Mon Mar 28 21:28:22 2005 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +4 -4 lines
Diff to previous 1.26 (colored)

spacing

Revision 1.26 / (download) - annotate - [select for diffs], Wed Dec 22 17:18:51 2004 UTC (20 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.25: +1 -18 lines
Diff to previous 1.25 (colored)

g/c str_zcpy()

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

Use stdbool.h instead of rolling our own bools.

Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 20 11:34:26 2004 UTC (20 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.23: +43 -102 lines
Diff to previous 1.23 (colored)

Ansification plus some minor knf. No binary change on i386 and
sparc64, binary change in lex.o on macppc due to introduction of
dopprompt() prototype. ok millert@

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

deregister

Revision 1.22 / (download) - annotate - [select for diffs], Sat Dec 18 20:55:52 2004 UTC (20 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.21: +30 -126 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Sun Dec 12 06:53:13 2004 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Wed Oct 22 07:40:38 2003 UTC (21 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

typos from Jared Yanovich;
ok deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 1 15:47:40 2003 UTC (21 years, 9 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Wed Aug 6 21:08:05 2003 UTC (21 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Remove some double semicolons (hmm, do two semis equal a maxi?).
I've skipped the GNU stuff for now.  From Patrick Latifi.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 5 20:52:27 2003 UTC (21 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

Don't allow alloc() and aresize() to fail.  Their return value was
only checked in two place (both in conjunction with str_save).  Upon
malloc/realloc failure we call internal_errorf() which pops throws
and error and pops back to the last good state.  OK deraadt@ pval@ fgs@
Original problem noted by mickey@

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 16 23:11:52 2003 UTC (22 years, 1 month ago) by tdeval
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

string cleaning.  ok tedu@

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 4 23:12:02 2003 UTC (22 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +12 -2 lines
Diff to previous 1.14 (colored)

two fixes; help from tedu & tdeval

Revision 1.14 / (download) - annotate - [select for diffs], Thu Mar 13 09:03:07 2003 UTC (22 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored)

a few strcpy -> strlcpy; a couple people have mailed in a variety of
patches, and i already had this sitting on my laptop at that time.. i used
that as a chance to note that we had all done the same work, more or less

Revision 1.13 / (download) - annotate - [select for diffs], Fri Feb 28 09:45:09 2003 UTC (22 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

typos; from Brian Poole

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 19 09:49:53 2001 UTC (24 years, 3 months ago) by camield
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)

bash-like 'double-tab' completion

- bind TAB (^I) to complete-list by default
- complete-list now lists 'ls style' not 'menu style'
- complete-list first completes; if that does not work, it lists
- fix a memleak in emacs.c, do_complete
- completion now works after '=' (dd), and ':' (ssh) and ` (backtick)
- a command can now start with a subdir from the current dir

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 28 20:36:37 2000 UTC (24 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.10: +9 -12 lines
Diff to previous 1.10 (colored)

use strtol() in getn(); millert@ and me

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:35 1999 UTC (25 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

patches from pdksh 5.2.13.11

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 8 20:25:01 1999 UTC (26 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.8: +49 -24 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 29 04:09:21 1998 UTC (26 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Thu Jun 25 19:02:11 1998 UTC (26 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.6: +56 -49 lines
Diff to previous 1.6 (colored)

pdksh-5.2.13 + local changes

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jun 19 13:58:45 1997 UTC (27 years, 11 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.5: +10 -10 lines
Diff to previous 1.5 (colored)

back out

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 18 22:42:40 1997 UTC (27 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.4: +11 -11 lines
Diff to previous 1.4 (colored)

(foo *)0 -> NULL

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jan 2 09:34:07 1997 UTC (28 years, 5 months ago) by downsj
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sun Dec 22 02:57:49 1996 UTC (28 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.2 / (download) - annotate - [select for diffs], Mon Aug 19 20:08:57 1996 UTC (28 years, 9 months ago) by downsj
Branch: MAIN
Changes since 1.1: +7 -5 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 (28 years, 9 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 (28 years, 9 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.