The NetBSD Project

CVS log for src/bin/sh/eval.c

[BACK] Up to [cvs.netbsd.org] / src / bin / sh

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.102.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:01:38 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.102: +5 -3 lines
Diff to previous 1.102 (colored) next main 1.103 (colored)

sync with head

Revision 1.103 / (download) - annotate - [select for diffs], Mon Nov 14 18:24:45 2011 UTC (6 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, HEAD
Changes since 1.102: +5 -3 lines
Diff to previous 1.102 (colored)

PR/45613: Aleksey Cheusov: /bin/sh: 'set -e' + 'if eval false' problem
Fixed from: http://www.freebsd.org/cgi/query-pr.cgi?pr=134881&cat=

Revision 1.102 / (download) - annotate - [select for diffs], Wed Aug 31 16:24:54 2011 UTC (8 months, 3 weeks ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

NULL does not need a cast

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:08:31 2011 UTC (14 months, 3 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.100: +6 -6 lines
Diff to previous 1.100 (colored) next main 1.101 (colored)

Sync with HEAD

Revision 1.101 / (download) - annotate - [select for diffs], Thu Feb 17 15:13:49 2011 UTC (15 months, 1 week ago) by pooka
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Changes since 1.100: +6 -6 lines
Diff to previous 1.100 (colored)

Tell copyfd if the caller wants the exact tofd to just fd >= tofd.
Fixes "echo foo > /rump/bar" in a rump hijacked shell.

reviewed by christos

Revision 1.100 / (download) - annotate - [select for diffs], Thu Jun 3 16:14:13 2010 UTC (23 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.99: +3 -2 lines
Diff to previous 1.99 (colored)

need errno for the debug build.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Jun 3 16:06:48 2010 UTC (23 months, 3 weeks ago) by christos
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

set -e is supposed to work inside eval; skip EV_TESTED.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Oct 7 18:12:11 2009 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

only for when trap if we are going to exit.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Oct 6 20:05:10 2009 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.96: +4 -3 lines
Diff to previous 1.96 (colored)

fix regression exit1: Don't exec the last command in a subshell if it has
trap[0] (trap EXIT) set. Fork instead to give the shell a chance to execute
the trap when it is done.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Jan 19 19:47:11 2009 UTC (3 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.95: +1 -1 lines
Diff to previous 1.95 (colored)

Revert previous commit that fixes PR/36079 (shell misses exit trap), because
the fix causes $! to point to the wrong process in pipelines, which is worse.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Dec 21 03:15:32 2008 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored)

PR/36079: M. Levinson: Disable the optimization of not forking for the last
command in a subshell, otherwise we miss the exit trap.

Revision 1.94 / (download) - annotate - [select for diffs], Fri Oct 31 14:38:42 2008 UTC (3 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored)

show better quoting output for sh -x, from Aleksey Cheusov

Revision 1.88.4.1 / (download) - annotate - [select for diffs], Thu Sep 4 08:46:10 2008 UTC (3 years, 8 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.88: +10 -6 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Sync with netbsd-4.

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:26:44 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.89: +10 -6 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Sun Jun 8 20:08:01 2008 UTC (3 years, 11 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.88: +10 -6 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Pull up following revision(s) (requested by tron in ticket #1157):
	bin/sh/eval.c: revision 1.90
Port revision 1.44 of "src/bin/sh/eval.c" from FreeBSD to fix PR bin/38584.
Reviewed by Michael van Elst.

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:02:57 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.89: +10 -6 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

sync with head

Revision 1.93 / (download) - annotate - [select for diffs], Mon May 26 14:55:17 2008 UTC (4 years ago) by tron
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.92: +6 -11 lines
Diff to previous 1.92 (colored)

Revert revisions 1.91 and 1.92. The POSIX spec about the correct behaviour
is contradictory at best. And these changes seem to cause more problems
that they are worth.

Revision 1.92 / (download) - annotate - [select for diffs], Sat May 24 22:24:32 2008 UTC (4 years ago) by tron
Branch: MAIN
Changes since 1.91: +11 -8 lines
Diff to previous 1.91 (colored)

Fix two more cases of bad handling of "set -e":
- false && false
- false || false

Revision 1.91 / (download) - annotate - [select for diffs], Sat May 24 19:06:43 2008 UTC (4 years ago) by tron
Branch: MAIN
Changes since 1.90: +4 -2 lines
Diff to previous 1.90 (colored)

Fix another problem with "set -e": "! true" should terminate the shell.

Revision 1.90 / (download) - annotate - [select for diffs], Sat May 24 17:12:53 2008 UTC (4 years ago) by tron
Branch: MAIN
Changes since 1.89: +10 -6 lines
Diff to previous 1.89 (colored)

Port revision 1.44 of "src/bin/sh/eval.c" from FreeBSD to fix PR bin/38584.
Reviewed by Michael van Elst.

Revision 1.88.8.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:11:40 2008 UTC (4 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

sync with HEAD

Revision 1.89 / (download) - annotate - [select for diffs], Fri Feb 15 17:26:06 2008 UTC (4 years, 3 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.88: +4 -4 lines
Diff to previous 1.88 (colored)

Fix inconsistent definitions

Revision 1.88 / (download) - annotate - [select for diffs], Mon Oct 16 00:36:19 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-fixsa, netbsd-4, matt-armv6
Changes since 1.87: +10 -16 lines
Diff to previous 1.87 (colored)

sprinkle volatile.

Revision 1.87 / (download) - annotate - [select for diffs], Sat May 13 19:47:22 2006 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.86: +4 -3 lines
Diff to previous 1.86 (colored)

Coverity CID 3384: Don't close -1.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Apr 18 14:44:05 2006 UTC (6 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

PR/33281: Martin J. Laubach: Prevent core-dump on "echo abc | { }". bash
prints and error and ksh prints nothing. We go the ksh way.

Revision 1.85 / (download) - annotate - [select for diffs], Fri Mar 17 17:20:47 2006 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored)

Coverity CID 2479: Clarify confusion about uninitialized variable in the
presence of setjmp/vfork.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jun 23 23:05:29 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored)

Revert part of the previous commit. We cannot fix the problem by not waiting.
The problem is that the subshell code is not doing redirections properly.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jun 22 23:32:45 2005 UTC (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.82: +5 -5 lines
Diff to previous 1.82 (colored)

Don't wait for a background job in a subshell when we are set to EV_EXIT.
While I am here, call forkshell() explicitly FORK_FOO flags instead of
depending in FORK_FG == 0 and FORK_BG == 1.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Mon Jun 13 22:03:51 2005 UTC (6 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Pull up revision 1.82 (requested by lukem in ticket #397):
Mark temp_path volatile so that it won't get clobbered after longjmp.
(Also appeases gcc -Wuninitialized.)

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jun 1 15:38:32 2005 UTC (6 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

Mark temp_path volatile so that it won't get clobbered after longjmp.
(Also appeases gcc -Wuninitialized.)

Revision 1.81 / (download) - annotate - [select for diffs], Wed Mar 2 20:57:31 2005 UTC (7 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

Fix printing of invalid commandname after certain types of errors on builtins.
Fixes bug bin/29410 in head.
All of /bin/sh needs pulling up into 2.0

Revision 1.80 / (download) - annotate - [select for diffs], Sat Oct 30 19:29:27 2004 UTC (7 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.79: +4 -3 lines
Diff to previous 1.79 (colored)

Pass WARNS=3

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jun 30 09:32:38 2004 UTC (7 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

Make "set -e" once again provide the behavior documented in the man page,
which was unnecessarily changed in revision 1.50 while fixing other bugs.
That is, exit the shell if the last command in a || or && compound statement
is not short-circuited, and exits with a false status.  I.e., the following
will cause the shell to exit:

  set -e
  false || false

While this is not the prescribed behavior in SUSv3, it is what our man page
documents, and it is what all of the following implementations do:

  NetBSD /bin/ksh (pdksh)
  bash
  zsh
  Solaris 9 /bin/sh
  Solaris 9 /usr/xpg4/bin/sh
  Solaris 9 /usr/bin/ksh
  Tru64 /bin/sh
  HP/UX 11 /bin/sh

The "standard" seems to be wrong in this instance.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Jun 26 22:09:49 2004 UTC (7 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.77: +5 -3 lines
Diff to previous 1.77 (colored)

Correctly apply IFS to unquoted text in ${x-text}.
Fixes PR/26058 and the 'for i in ${x-a b c}; do ...' and ${x-'a b' c}.
I can't find a PR for the latter problem.
Regression test goind in shortly.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jun 26 14:09:58 2004 UTC (7 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

No functional changes (intended).
Rename some variables, add some comments, and restructure a little.
In preparation for fixing "set ${x-a b c}" and friends.

Revision 1.76 / (download) - annotate - [select for diffs], Fri Apr 30 06:27:59 2004 UTC (8 years ago) by dsl
Branch: MAIN
Changes since 1.75: +31 -5 lines
Diff to previous 1.75 (colored)

Ensure that fd 0, 1 and 2 are not used for the local end of pipelines.
Fixes PR bin/25395

Revision 1.75 / (download) - annotate - [select for diffs], Fri Nov 14 10:27:10 2003 UTC (8 years, 6 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Add '\n' to "fork failed" trace messages.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Aug 7 09:05:30 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.73: +3 -7 lines
Diff to previous 1.73 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jul 13 08:31:13 2003 UTC (8 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.72: +9 -9 lines
Diff to previous 1.72 (colored)

use bounded string op

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jan 23 14:58:07 2003 UTC (9 years, 4 months ago) by agc
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

Make this build on platforms where size_t != int, i.e. sparc, arm, ppc, ...

Revision 1.71 / (download) - annotate - [select for diffs], Thu Jan 23 03:33:16 2003 UTC (9 years, 4 months ago) by rafal
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Make this build again.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jan 22 20:36:03 2003 UTC (9 years, 4 months ago) by dsl
Branch: MAIN
Changes since 1.69: +142 -60 lines
Diff to previous 1.69 (colored)

Support command -p, -v and -V as posix
Stop temporary PATH assigments messing up hash table
Fix sh -c -e "echo $0 $*" -a x (as posix)
(agreed by christos)

Revision 1.69 / (download) - annotate - [select for diffs], Mon Nov 25 21:55:58 2002 UTC (9 years, 6 months ago) by agc
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored)

Include <stdio.h> to get the prototype for sprintf(3) - macppc needs this.

Revision 1.68 / (download) - annotate - [select for diffs], Sun Nov 24 22:35:39 2002 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.67: +165 -123 lines
Diff to previous 1.67 (colored)

Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
  (so I could unset -e PS1 before running the test shell...)

Revision 1.67 / (download) - annotate - [select for diffs], Wed Oct 23 19:46:34 2002 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

From David Laight
> The wrong process is aborting when variable assignment fails
> in the vfork path.  So the following command fails to execute
> the second echo (shown here with the correct output).
>
> $ (readonly r; r= /bin/echo a; echo b)
> r: is read only
> b
>
> fix: defer the mklocal() to the child shell.

Revision 1.66 / (download) - annotate - [select for diffs], Wed Oct 23 13:25:24 2002 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored)

Fix interrupt problam from David Laight

$ /fred # non existant command
$ ^C # stops working

He says:
    Ok the extra INTOFF is the one in exverror().
    In almost all cases this doesn't matter because the longjmp()s
    all end up in main() and the FORCEINTON call sorts it out
    for the next command.
    (There are a significant number of INTON/OFF mismatches through
    the error paths...)

    In any case the above failure can be 'fixed' by changing 2 (I think
    they are both needed) INTON calls to FORCEINTON within evalcommand.
    The following patch seems to work:

We should really look in the code and fix the INTON->INTOFF pairs.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Sep 28 01:25:01 2002 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.64: +52 -63 lines
Diff to previous 1.64 (colored)

Revert previous change. No need to save rootshell. It is only affecting
the non-vfork case. Having said that, it would be nice if pipelines of
simple commands were vforked too. Right now they are not.
Explain that setpgid() might fail because we are doing it both in the
parent and the child case, because we don't know which one will come
first.
Suspending a pipeline prints %1 Suspended n times where n is the number
of processes, but that was there before. It is easy to fix, but I'll
leave the code alone for now.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Sep 27 22:56:24 2002 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.63: +66 -52 lines
Diff to previous 1.63 (colored)

Deal with rootshell not being maintained correctly in the vfork() case.
Propagate isroot, throughout the eval process and maintain it properly.
Fixes sleep 10 | cat^C not exiting because sleep and cat ended up in
their own process groups, because wasroot was always true in the children.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Sep 27 21:32:25 2002 UTC (9 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.62: +8 -7 lines
Diff to previous 1.62 (colored)

Clean up INTOFF/INTON usage a little -- none of fork{shell,parent,child}()
screw with them now, only their callers.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Sep 27 20:24:36 2002 UTC (9 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.61: +5 -2 lines
Diff to previous 1.61 (colored)

Put back charles' fixes from -r1.60

Revision 1.61 / (download) - annotate - [select for diffs], Fri Sep 27 18:56:50 2002 UTC (9 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.60: +81 -16 lines
Diff to previous 1.60 (colored)

VFork()ing shell: From elric@netbsd.org:
Plus my changes:
	- walking process group fix in foregrounding a job.
	- reset of process group in parent shell if interrupted before the wait.
	- move INTON lower in the dowait so that the job structure is
	  consistent.
	- error check all setpgid(), tcsetpgrp() calls.
	- eliminate unneeded strpgid() call.
	- check that we don't belong in the process group before we try to
	  set it.

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 27 17:37:12 2002 UTC (9 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +6 -7 lines
Diff to previous 1.59 (colored)

In evalpipe(), move the INTOFF after the waitforjob(), to prevent possible
race conditions -- now we always synchronously wait for the job to finish.
In evalcommand(), add the same INTOFF/INTON locking as evalpipe(), to prevent
leaving internal state inconsistent, and also to insure that we synchronously
wait for the job.

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 15 16:33:35 2002 UTC (10 years ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.58: +3 -2 lines
Diff to previous 1.58 (colored)

implement noclobber. From Ben Harris, with minor tweaks from me. Two
unimplemented comments to go. Go Ben!

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Wed Mar 27 20:37:33 2002 UTC (10 years, 2 months ago) by elric
Branch: ELRICshvfork
Changes since 1.58: +84 -13 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Doing the vfork work on ash on a branch to try to shake out the
problems before I expose everyone to them.  This checkin represents
a merge of the prior work, which I backed out a while ago, to the
HEAD only and does not incorporate any additional bugfixes.  The
additional bugfixes and code-cleanup will occur in later checkins.

For reference the patches that were used are:
cvs diff -kk -r1.51 -r1.55 eval.c  | patch
cvs diff -kk -r1.27 -r1.28 exec.c  | patch
cvs diff -kk -r1.15 -r1.16 exec.h  | patch
cvs diff -kk -r1.32 -r1.33 input.c | patch
cvs diff -kk -r1.10 -r1.11 input.h | patch
cvs diff -kk -r1.32 -r1.35 jobs.c  | patch
cvs diff -kk -r1.9  -r1.11 jobs.h  | patch
cvs diff -kk -r1.36 -r1.37 main.c  | patch
cvs diff -kk -r1.20 -r1.21 redir.c | patch
cvs diff -kk -r1.10 -r1.11 redir.h | patch
cvs diff -kk -r1.10 -r1.12 shell.h | patch
cvs diff -kk -r1.22 -r1.23 trap.c  | patch
cvs diff -kk -r1.12 -r1.13 trap.h  | patch
cvs diff -kk -r1.23 -r1.24 var.c   | patch
cvs diff -kk -r1.16 -r1.17 var.h   | patch

All other changes were simply the resolution of the resulting
conflicts, which occured only in the merge of jobs.c.

Begins to address PR: bin/5475

Revision 1.56.4.1 / (download) - annotate - [select for diffs], Sat Feb 23 17:08:17 2002 UTC (10 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Pull up revision 1.58 (requested by christos):
  When ``-e'' is in effect, do not exit if the failing command is
  part of an && or || list, or preceded by the ``!'' reserved word.
  Fixes PR#11542.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Feb 14 21:51:41 2002 UTC (10 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: ELRICshvfork-base
Branch point for: ELRICshvfork
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

PR/11542: Back-out previous change that caused
set -e
for x in a; do
    BAR="foo"
    false && echo true
    echo mumble
done

not to echo mumble...

Revision 1.57 / (download) - annotate - [select for diffs], Sun Feb 4 19:52:06 2001 UTC (11 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

remove redundant declarations and nexted externs.

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 22 10:18:46 2000 UTC (12 years ago) by elric
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.55: +13 -84 lines
Diff to previous 1.55 (colored)

Back out previous vfork changes.

Revision 1.55 / (download) - annotate - [select for diffs], Wed May 17 07:37:12 2000 UTC (12 years ago) by elric
Branch: MAIN
Changes since 1.54: +12 -5 lines
Diff to previous 1.54 (colored)

When vforking ensure that the environment passed to exec is built before
vforking as a set of local variables which can be popped by the parent.

Addresses bin/10124.

Revision 1.54 / (download) - annotate - [select for diffs], Mon May 15 03:42:48 2000 UTC (12 years ago) by elric
Branch: MAIN
Changes since 1.53: +5 -3 lines
Diff to previous 1.53 (colored)

INTON and FORCEINTON modify global variables, and so should not be
executed while we are vforked.

Revision 1.53 / (download) - annotate - [select for diffs], Sat May 13 21:11:45 2000 UTC (12 years ago) by elric
Branch: MAIN
Changes since 1.52: +5 -2 lines
Diff to previous 1.52 (colored)

Added includes for waitpid, sys/types.h and sys/wait.h.

Revision 1.52 / (download) - annotate - [select for diffs], Sat May 13 20:50:14 2000 UTC (12 years ago) by elric
Branch: MAIN
Changes since 1.51: +68 -9 lines
Diff to previous 1.51 (colored)

Now we use vfork(2) instead of fork(2) when we can.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Feb 9 20:26:53 2000 UTC (12 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Fix problem where commands that caused exitstatus != 0 inside loops did
not cause the shell to exit when -e was set.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jan 27 23:39:38 2000 UTC (12 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.49: +25 -18 lines
Diff to previous 1.49 (colored)

Fix bin/9184, bin/9194, bin/9265, bin/9266
Exitcode and negation problems (From Martin Husemann)

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:27:12 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Pull up to last week's -current.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Oct 13 00:59:10 1999 UTC (12 years, 7 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.48: +0 -1 lines
Diff to previous 1.48 (colored)

back out previous; it causes /etc/rc to break on my alpha and other lossage as reported in PR#8614

Revision 1.48 / (download) - annotate - [select for diffs], Sun Oct 10 21:22:24 1999 UTC (12 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (colored)

Backtrack `exitstatus' to make the shell really ignore the status
of `tested commands' as in this example:

	set -e
	true; false && echo "not reached"

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 9 03:05:49 1999 UTC (12 years, 10 months ago) by christos
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.46: +7 -6 lines
Diff to previous 1.46 (colored)

compile with WARNS = 2

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Thu Jul 1 15:20:58 1999 UTC (12 years, 10 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.45: +12 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

pullup 1.45->1.46 (christos)

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 26 16:31:47 1999 UTC (12 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.45: +12 -3 lines
Diff to previous 1.45 (colored)

PR/7814: Matthias Scheler: shell does not fork for builtins in backquotes,
leading to unexpected behaviour. Disable the no-fork optimization for now.
We need to revisit this and keep enough state around to recover from such
changes.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Feb 4 16:17:39 1999 UTC (13 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

PR/4966: Joel Reicher: Implement <> redirections which are documented in
the man page.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jul 28 11:41:53 1998 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +4 -9 lines
Diff to previous 1.43 (colored)

Be more retentive about use of NOTREACHED and noreturn.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jul 28 05:31:27 1998 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +5 -3 lines
Diff to previous 1.42 (colored)

Delint.

Revision 1.39.2.1 / (download) - annotate - [select for diffs], Fri May 8 06:01:03 1998 UTC (14 years ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with trunk, per request of christos.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Feb 5 08:34:49 1998 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Re-enabled EXP_RECORD

Revision 1.41 / (download) - annotate - [select for diffs], Wed Feb 4 06:25:55 1998 UTC (14 years, 3 months ago) by mikel
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

back out last change until christos fixes EXP_RECORD; PR 4932

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jan 31 12:45:06 1998 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

PR/4851: Benjamin Lorenz: In the "for <var> in <args>" construct <args>
was not marked as a region to be handled by ifsbreakup. Add EXP_RECORD
to indicate that the argument string needs to be recorded.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Aug 26 20:09:59 1997 UTC (14 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Avoid a segv in bltinlookup() reported by Ronald Khoo <ronald@demon.net>
in PR #3929, fix submitted by hiroy@NETCOM.COM (Hiroyuki Ito).

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 20 21:27:35 1997 UTC (14 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

PR/3888: Chris Demetriou: type command-with-slash prints
	$PATH[0]/command-with-slash...

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jul 15 17:49:15 1997 UTC (14 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored)

PR/3866: bayer@informatik.uni-leipzig.de: core dump using xon script.
cmdenviron is pointing to varlist.list; varlist gets reset everytime
you enter evalcommand, but cmdenviron does not. The wonders of global
variables...

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jul 4 21:01:56 1997 UTC (14 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

Fix compiler warnings.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 14 01:42:19 1997 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (colored)

NO_HISTORY->SMALL

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Sun Jan 26 04:57:16 1997 UTC (15 years, 4 months ago) by rat
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.29.4.1: +36 -25 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

Update /bin/sh from trunk per request of Christos Zoulas.  Fixes
many bugs.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 11 02:04:29 1997 UTC (15 years, 4 months ago) by tls
Branch: MAIN
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

kill 'register'

Revision 1.33 / (download) - annotate - [select for diffs], Sat Nov 9 01:04:07 1996 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (colored)

remove a debugging printf that was left from the last POSIX error code fixes.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Nov 6 01:17:10 1996 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

Fix miscellaneous getopts problems:
- the 3 argument version of getopts would not reset properly
- OPTARG did not get cleared after a non argument option was found
- OPTIND was not set properly after a non argument option.

Revision 1.31 / (download) - annotate - [select for diffs], Wed Oct 16 14:31:57 1996 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.30: +35 -24 lines
Diff to previous 1.30 (colored)

PR/287: Exit with 127/126 when command is not found/permission denied.
PR/2808: don't bomb out on "set -e; false && true"

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 19:36:36 1996 UTC (15 years, 11 months ago) by jtc
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-BETA
Changes since 1.29: +4 -10 lines
Diff to previous 1.29 (colored)

pulled up from version 1.30 at christos' request

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jun 3 12:21:17 1996 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.29: +4 -10 lines
Diff to previous 1.29 (colored)

Fix PR/2504: return with no args returns 0 instead of the return value of
the previous command in functions

Revision 1.29 / (download) - annotate - [select for diffs], Wed Mar 6 14:49:29 1996 UTC (16 years, 2 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (colored)

Return zero status if `else' clause is empty.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Mar 5 21:03:52 1996 UTC (16 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.27: +3 -7 lines
Diff to previous 1.27 (colored)

- parser.c: Fix prompting in old style backquote expansion. Fixes PR/2139
	    and many user complaints why the shell hangs in echo "`"
- eval.c:   Fix exitstatus invalid resetting in `if' statements were:
		if (exit 3); then
			echo foo $?
		else
			echo bar $?
		fi
	    printed 'bar 0' instead of bar 3

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 11 17:05:41 1995 UTC (16 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.26: +9 -9 lines
Diff to previous 1.26 (colored)

Fix return builtin to work like it does in ksh:
When not in a function, it skips the rest of the current input file.
Instances of `return' outside function definitions were previously ignored.
What does joe posix have to say about this?
[fixes PR/1444]

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 9 01:53:44 1995 UTC (16 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.25: +16 -4 lines
Diff to previous 1.25 (colored)

Changed so that 'PATH=newpath command' works, instead of looking at the
old path. Synced input.c with vangogh.

Revision 1.25 / (download) - annotate - [select for diffs], Fri May 19 15:08:55 1995 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

Changed so that syntax errors (EXERROR) set the exit status to 2,
and commands that are not found set the exit status to 1 like all
other bourne shells.
[It used to be 0 and 2 respectively]

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 15 03:29:54 1995 UTC (17 years ago) by cgd
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

re-add an #endif that was (apprently) clobbered.

Revision 1.23 / (download) - annotate - [select for diffs], Mon May 15 02:47:38 1995 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.22: +14 -6 lines
Diff to previous 1.22 (colored)

Fixed new bug the previous fix introduced:

    false
    foo=bar
    echo $?

would print 1
Also fixed the long standing bug:

    false
    echo `echo $?`

would print 0
The exitstatus needs rethinking and rewriting. The trial and error method
is not very efficient

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 14 04:19:18 1995 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.21: +19 -18 lines
Diff to previous 1.21 (colored)

Fixed bug caused by previous x=`false` not preserving the exit status fix.
The if statement exit status broke...

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 11 21:28:56 1995 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.20: +27 -30 lines
Diff to previous 1.20 (colored)

Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0
bug.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 31 21:58:09 1995 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.19: +8 -11 lines
Diff to previous 1.19 (colored)

1. Don't core dump on 'fc -l' (From Gerard J van der Grinten)
2. PATH=xxx ls, does the PATH assignment first and then tries to find ls in xxx
3. VAR=xxx exec ls, does the variable assignment.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 21 09:08:54 1995 UTC (17 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.18: +7 -2 lines
Diff to previous 1.18 (colored)

convert to new RCS id conventions.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 23 13:24:39 1994 UTC (17 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

be more careful with casts.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Dec 5 19:07:37 1994 UTC (17 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

clean up further.  more patches from Jim Jegers

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 4 07:12:10 1994 UTC (17 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.15: +40 -10 lines
Diff to previous 1.15 (colored)

from James Jegers <jimj@miller.cs.uwm.edu>: quiet -Wall, and squelch
some of the worst style errors.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Wed Aug 24 05:49:23 1994 UTC (17 years, 9 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

update from trunk

Revision 1.15 / (download) - annotate - [select for diffs], Wed Aug 24 05:48:26 1994 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +4 -3 lines
Diff to previous 1.14 (colored)

Fix a core dump and another parse error related to null commands.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jun 14 05:49:19 1994 UTC (17 years, 11 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.13: +15 -6 lines
Diff to previous 1.13 (colored)

From Christos:
  1. Fix `-' quoting in [ ] expressions.
  2. Fix expansion of variables in redirections

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jun 12 02:31:28 1994 UTC (17 years, 11 months ago) by jtc
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Set the status variable ($?) to 0 after a successful variable assignment.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jun 11 16:11:49 1994 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Add RCS ids.

Revision 1.11 / (download) - annotate - [select for diffs], Sat May 21 01:42:30 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -0 lines
Diff to previous 1.10 (colored)

a few more things to omit when NO_HISTORY defined.  from noel@cs.oberlin.edu

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 14 22:20:14 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.9: +4 -0 lines
Diff to previous 1.9 (colored)

add back in support for building w/o obj dir.  also, add NO_HISTORY
define, which (if you invoke mkbuiltins properly) gets you a sh w/o
history of command line editing (for floppy sh).

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 12 17:03:34 1994 UTC (18 years ago) by jtc
Branch: MAIN
Changes since 1.8: +1 -0 lines
Diff to previous 1.8 (colored)

Include appropriate header files to bring function prototypes into scope.

Revision 1.8 / (download) - annotate - [select for diffs], Wed May 11 17:42:58 1994 UTC (18 years ago) by jtc
Branch: MAIN
Changes since 1.7: +5 -0 lines
Diff to previous 1.7 (colored)

reintegrate NetBSD's false builtin

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 11 17:09:52 1994 UTC (18 years ago) by jtc
Branch: MAIN
Changes since 1.6: +28 -22 lines
Diff to previous 1.6 (colored)

sync with 4.4lite

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Wed May 11 17:02:11 1994 UTC (18 years ago) by jtc
Branch: WFJ-920714, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +28 -15 lines
Diff to previous 1.1.1.1 (colored)

44lite code

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 9 01:05:19 1993 UTC (18 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored)

fix from Jim Wilson <wilson@cygnus.com> for nothing-between-backquotes core

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 1 18:58:18 1993 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Add RCS identifiers.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jul 7 01:11:57 1993 UTC (18 years, 10 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

IEEE 1003.2 (D11.2.2.3) requires that the system's true and false be accessed
instead of searching $PATH.  The best way to satisfy this requirement is to
make them builtins.

True was allready builtin, this patch adds false.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:27:50 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

changed "Id" to "Header" for rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

added rcs ids to all files

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
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.




CVSweb <webmaster@jp.NetBSD.org>