OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.40 / (download) - annotate - [select for diffs], Mon Jul 5 13:41:46 2021 UTC (2 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: 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, OPENBSD_7_0_BASE, OPENBSD_7_0, HEAD
Changes since 1.39: +3 -1 lines
Diff to previous 1.39 (colored)

Do not permit an empty list between "while" and "do".
This avoids a cpu loop for "while do done" and is consistent with
the behavior of AT&T ksh and most other shells.  OK jca@ halex@

Revision 1.39 / (download) - annotate - [select for diffs], Tue Apr 24 08:25:16 2018 UTC (6 years, 1 month ago) by kn
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, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.38: +8 -4 lines
Diff to previous 1.38 (colored)

Keep the time pipeline's stack in tact

Revision 1.28 (2008) fixed stack abuse by allocating a new one and
effectively clearing it. This broke pipelines such as

	$ time for i in . ; do : ; done
	/bin/ksh: : is read only

Prompted by tb, OK millert, tb, jca

Revision 1.38 / (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_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (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.36: +7 -7 lines
Diff to previous 1.36 (colored)

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

ok nicm@

Revision 1.36 / (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.35: +3 -1 lines
Diff to previous 1.35 (colored)

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

ok nicm@

Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 15 22:53:50 2015 UTC (8 years, 7 months ago) by mmcc
Branch: MAIN
Changes since 1.34: +10 -10 lines
Diff to previous 1.34 (colored)

Remove three distracting aliases for NULL.

ok nicm@

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 6 21:21:39 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.33: +24 -26 lines
Diff to previous 1.33 (colored)

Drop the silly and distracting ACCEPT and REJECT macros, from Michael
McConville. No binary change. ok millert tedu

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

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

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

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

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

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

Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 1 13:12:31 2015 UTC (8 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

remove casts and null checks before free. from Michael McConville
ok deraadt

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 3 18:40:05 2013 UTC (11 years ago) by jca
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, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.28: +3 -8 lines
Diff to previous 1.28 (colored)

for var in; do ... shouldn't be interpreted as for var; do ...
Fix by returning an empty token list instead of NULL to consumers.

Brings base ksh more in line with POSIX.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jul 23 16:34:38 2008 UTC (15 years, 10 months ago) by jaredy
Branch: MAIN
CVS Tags: 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, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.27: +6 -1 lines
Diff to previous 1.27 (colored)

fix stack abuse in the `time' commmand, using alloc()'d memory instead.

reported by Thorsten Glaser, thanks.

ok millert@, earlier version miod@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 10 14:38:59 2006 UTC (18 years, 2 months ago) by jaredy
Branch: MAIN
CVS Tags: 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
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

fix lint comments, no functional changes; ok ray

Revision 1.26 / (download) - annotate - [select for diffs], Tue Mar 21 10:41:26 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (colored)

Revert for the moment, according to Mike Belopuhov this produces
errors in rc and netstart.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Mar 20 20:54:08 2006 UTC (18 years, 2 months ago) by otto
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Fix potential null deref and out-of-bound access.
ok millert@ deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Mar 14 22:08:40 2006 UTC (18 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +5 -7 lines
Diff to previous 1.23 (colored)

remove excessive optimization; from adobriyan@gmail; ok tedu

Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 11 20:31:21 2005 UTC (18 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

fix a few name clashes with libc; found by lint. ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Wed Mar 30 17:16:37 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.21: +49 -49 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Mon Mar 28 21:33:04 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

spacing

Revision 1.20 / (download) - annotate - [select for diffs], Wed Dec 22 17:14:34 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.19: +38 -38 lines
Diff to previous 1.19 (colored)

Use stdbool.h instead of rolling our own bools.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 20 11:34:26 2004 UTC (19 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.18: +51 -83 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Sat Dec 18 22:42:26 2004 UTC (19 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.17: +3 -4 lines
Diff to previous 1.17 (colored)

remove GCC_FUNC_ATTR/GCC_FUNC_ATTR2 and just use __attribute__ directly
(we define it away in sys/cdefs.h if it is not supported).

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

deregister

Revision 1.16 / (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.15: +1 -15 lines
Diff to previous 1.15 (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.15 / (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.14: +29 -30 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Wed Oct 22 07:40:38 2003 UTC (20 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.13: +2 -2 lines
Diff to previous 1.13 (colored)

typos from Jared Yanovich;
ok deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jun 9 05:47:27 2002 UTC (22 years ago) by todd
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

knf

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 15 01:18:36 1999 UTC (25 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, 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.11: +5 -1 lines
Diff to previous 1.11 (colored)

patches from pdksh 5.2.13.11

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 29 04:09:21 1998 UTC (25 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.10: +13 -4 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Fri Oct 9 16:21:36 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Initialize the correct fields when creating an empty command.  Fixes bug where a
function with no body ( e.g. "testfun () ;" ) would cause ksh to segfault when
it was called.  Eric Haszlakiewicz <erh@netbsd.org>

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 25 19:02:20 1998 UTC (25 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.8: +89 -103 lines
Diff to previous 1.8 (colored)

pdksh-5.2.13 + local changes

Revision 1.8 / (download) - annotate - [select for diffs], Mon Sep 1 18:30:12 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

i am bored enough to fix terminal space/tab uglies

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 19 13:58:47 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.6: +19 -19 lines
Diff to previous 1.6 (colored)

back out

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

(foo *)0 -> NULL

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 21 07:59:35 1996 UTC (27 years, 6 months ago) by downsj
Branch: MAIN
Changes since 1.4: +8 -2 lines
Diff to previous 1.4 (colored)

Update to 5.2.12.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 13 21:32:20 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
Changes since 1.3: +14 -2 lines
Diff to previous 1.3 (colored)

Update to version 5.2.11.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 1 02:05:50 1996 UTC (27 years, 8 months ago) by downsj
Branch: MAIN
Changes since 1.2: +4 -2 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:59 1996 UTC (27 years, 9 months ago) by downsj
Branch: MAIN
Changes since 1.1: +7 -6 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.