The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.86.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.86: +3 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Wed Mar 28 20:11:25 2012 UTC (8 weeks, 2 days ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, HEAD
Changes since 1.86: +3 -2 lines
Diff to previous 1.86 (colored)

include <limits.h> for CHAR_MIN/CHAR_MAX

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Wed Nov 2 19:31:19 2011 UTC (6 months, 3 weeks ago) by riz
Branch: netbsd-5
Changes since 1.79: +16 -10 lines
Diff to previous 1.79 (colored) next main 1.80 (colored)

Pull up following revision(s) (requested by christos in ticket #1665):
	bin/sh/expand.c: revision 1.85
PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating
trailing newlines
if the block has moved, arrange so that trailing newlines are never placed in
the string
in the first place, by accumulating them and adding them only after we've
encountered a
non-newline character. This allows also for more efficient appending since we
know how much
we need beforehand. From FreeBSD.

Revision 1.86 / (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, netbsd-6-base, netbsd-6
Branch point for: yamt-pagecache
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored)

NULL does not need a cast

Revision 1.85 / (download) - annotate - [select for diffs], Tue Aug 23 10:04:39 2011 UTC (9 months ago) by christos
Branch: MAIN
Changes since 1.84: +16 -10 lines
Diff to previous 1.84 (colored)

PR/45269: Andreas Gustafsson: Instead of falling off the edge when eating trailing newlines
if the block has moved, arrange so that trailing newlines are never placed in the string
in the first place, by accumulating them and adding them only after we've encountered a
non-newline character. This allows also for more efficient appending since we know how much
we need beforehand. From FreeBSD.

Revision 1.83.4.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:17:48 2011 UTC (11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored) next main 1.84 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Jun 18 21:18:46 2011 UTC (11 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored)

PR/45069: Henning Petersen: Use prototypes from builtins.h .

Revision 1.83 / (download) - annotate - [select for diffs], Fri Nov 27 10:50:04 2009 UTC (2 years, 5 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

Use %zu in printf format for size_t value.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Jan 18 00:30:54 2009 UTC (3 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored)

fix -Wsign-compare issues

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

use EXP_CASE only when trimming and unquoted.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Dec 20 20:36:44 2008 UTC (3 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored)

PR/36954: Roland Illig: don't eat backlash escapes in variable patterns.
Makes ${line%%\**} work.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Oct 16 17:58:29 2008 UTC (3 years, 7 months ago) by dholland
Branch: MAIN
CVS Tags: 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, 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
Branch point for: netbsd-5
Changes since 1.78: +8 -6 lines
Diff to previous 1.78 (colored)

The field width passed for a %.*s printf format is supposed to be int, not
ptrdiff_t; on 64-bit platforms the latter will be too wide.
Adjust accordingly.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Mon Apr 16 19:33:51 2007 UTC (5 years, 1 month ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Changes since 1.77: +10 -10 lines
Diff to previous 1.77 (colored) next main 1.78 (colored)

Pull up following revision(s) (requested by apb in ticket #570):
	bin/sh/expand.c: revision 1.78
	bin/sh/arith.y: revision 1.18
	bin/sh/expand.h: revision 1.17
	regress/bin/sh/expand.sh: revision 1.4
	bin/sh/sh.1: revision 1.86
	bin/sh/arith_lex.l: revision 1.14
Make /bin/sh use intmax_t (instead of int) for arithmetic in $((...)).

Revision 1.78 / (download) - annotate - [select for diffs], Sun Mar 25 06:29:26 2007 UTC (5 years, 2 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, mjf-devfs2-base, mjf-devfs2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Changes since 1.77: +10 -10 lines
Diff to previous 1.77 (colored)

Make /bin/sh use intmax_t (instead of int) for arithmetic in $((...)).

Revision 1.77 / (download) - annotate - [select for diffs], Fri Nov 24 22:54:47 2006 UTC (5 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

s/apparant/apparent/, from Zafer.

Revision 1.68.2.5 / (download) - annotate - [select for diffs], Sat Sep 2 20:39:51 2006 UTC (5 years, 8 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.68.2.4: +2 -3 lines
Diff to previous 1.68.2.4 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Pull up following revision(s) (requested by dsl in ticket #1488):
	bin/sh/expand.c: revision 1.76
Set the 'not a parameter' flag when we skip initial whitespace.
Otherwise:
    ./sh -c 'x=" "; for a in $x; do echo a${a}a; done'
is processed as a single empty parameter (instead of no parameters).
Should fix the breakage I introdiced in rev 1.75 and PR/34256 and PR/34254

Revision 1.68.2.4 / (download) - annotate - [select for diffs], Sat Sep 2 20:38:46 2006 UTC (5 years, 8 months ago) by ghen
Branch: netbsd-3
Changes since 1.68.2.3: +11 -10 lines
Diff to previous 1.68.2.3 (colored) to branchpoint 1.68 (colored)

Pull up following revision(s) (requested by dsl in ticket #1487):
	bin/sh/expand.c: revision 1.75
Rework the code changes from revisions 1.69, 1.70 and 1.74 so that the code
behaves correctly.
As far as I can tell, "x$@y" now expands correctly, as does IFS=:; set -$IFS.
Fixes PR/33472 (again) and PR/33956

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Fri Sep 1 14:59:13 2006 UTC (5 years, 8 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.74.2.1: +3 -3 lines
Diff to previous 1.74.2.1 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored)

Pull up following revision(s) (requested by dsl in ticket #84):
	bin/sh/expand.c: revision 1.76
Set the 'not a parameter' flag when we skip initial whitespace.
Otherwise:
    ./sh -c 'x=" "; for a in $x; do echo a${a}a; done'
is processed as a single empty parameter (instead of no parameters).
Should fix the breakage I introdiced in rev 1.75 and PR/34256 and PR/34254

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Fri Sep 1 14:57:54 2006 UTC (5 years, 8 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.74: +12 -12 lines
Diff to previous 1.74 (colored)

Pull up following revision(s) (requested by dsl in ticket #83):
	bin/sh/expand.c: revision 1.75
Rework the code changes from revisions 1.69, 1.70 and 1.74 so that the code
behaves correctly.
As far as I can tell, "x$@y" now expands correctly, as does IFS=:; set -$IFS.
Fixes PR/33472 (again) and PR/33956

Revision 1.76 / (download) - annotate - [select for diffs], Tue Aug 22 18:11:42 2006 UTC (5 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Set the 'not a parameter' flag when we skip initial whitespace.
Otherwise:
    ./sh -c 'x=" "; for a in $x; do echo a${a}a; done'
is processed as a single empty parameter (instead of no parameters).
Should fix the breakage I introdiced in rev 1.75 and PR/34256 and PR/34254

Revision 1.75 / (download) - annotate - [select for diffs], Mon Aug 21 21:30:14 2006 UTC (5 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.74: +12 -12 lines
Diff to previous 1.74 (colored)

Rework the code changes from revisions 1.69, 1.70 and 1.74 so that the code
behaves correctly.
As far as I can tell, "x$@y" now expands correctly, as does IFS=:; set -$IFS.
Fixes PR/33472 (again) and PR/33956

Revision 1.68.2.3 / (download) - annotate - [select for diffs], Mon Jun 12 12:22:54 2006 UTC (5 years, 11 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RC1
Changes since 1.68.2.2: +5 -5 lines
Diff to previous 1.68.2.2 (colored) to branchpoint 1.68 (colored)

Pull up following revision(s) (requested by dsl in ticket #1336):
	bin/sh/expand.c: revision 1.74
When expanding "$@" add a \0 byte after the last argument (as well as all
the earlier ones) so that a separator is added before it when it is empty.
This wasn't needed before a recent change that chenged the behaviour of
trailing whitespace IFS characters.
Fixed PR/33472

Revision 1.68.2.2.2.1 / (download) - annotate - [select for diffs], Mon Jun 12 12:19:27 2006 UTC (5 years, 11 months ago) by tron
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Changes since 1.68.2.2: +5 -5 lines
Diff to previous 1.68.2.2 (colored) next main 1.68.2.3 (colored)

Pull up following revision(s) (requested by dsl in ticket #1336):
	bin/sh/expand.c: revision 1.74
When expanding "$@" add a \0 byte after the last argument (as well as all
the earlier ones) so that a separator is added before it when it is empty.
This wasn't needed before a recent change that chenged the behaviour of
trailing whitespace IFS characters.
Fixed PR/33472

Revision 1.74 / (download) - annotate - [select for diffs], Sat May 20 13:57:27 2006 UTC (6 years ago) by dsl
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.73: +5 -5 lines
Diff to previous 1.73 (colored)

When expanding "$@" add a \0 byte after the last argument (as well as all
the earlier ones) so that a separator is added before it when it is empty.
This wasn't needed before a recent change that chenged the behaviour of
trailing whitespace IFS characters.
Fixed PR/33472

Revision 1.73 / (download) - annotate - [select for diffs], Sat Mar 18 05:25:56 2006 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.72: +2 -4 lines
Diff to previous 1.72 (colored)

Coverity CID 620: Remove dead code.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Dec 13 17:44:18 2005 UTC (6 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored)

TOG require that 'set +o' output the options in a form suitable for
restoring them - make it so.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Fri Oct 28 22:52:23 2005 UTC (6 years, 6 months ago) by riz
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Pull up following revision(s) (requested by martin in ticket #1418):
	bin/sh/expand.c: revision 1.68
expbackq() was incorrectly backing up a temporary buffer when removing \n
from the end of output of commands inside $(...) substitutions.
If the program output is n*128+1 bytes long (ending in a \n) then the code
checks buf[-1] for another \n - looking an uninitialised stack.
On a big-endian system an integer of value 10 will satisfy this (unlikely
on little endian) and can happen depending on the last code path to use
a lot of stack!
This caused the problem with newvers.sh on sparc64 after ', 2005' was
added to the date list.
Fixed PR/28852

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

appease gcc -Wuninitialized

Revision 1.60.4.1 / (download) - annotate - [select for diffs], Wed May 11 23:16:09 2005 UTC (7 years ago) by riz
Branch: netbsd-2
CVS Tags: 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
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored) next main 1.61 (colored)

Pull up revision 1.68 (requested by martin in ticket #1418):
expbackq() was incorrectly backing up a temporary buffer when removing \n
from the end of output of commands inside $(...) substitutions.
If the program output is n*128+1 bytes long (ending in a \n) then the code
checks buf[-1] for another \n - looking an uninitialised stack.
On a big-endian system an integer of value 10 will satisfy this (unlikely
on little endian) and can happen depending on the last code path to use
a lot of stack!
This caused the problem with newvers.sh on sparc64 after ', 2005' was
added to the date list.
Fixed PR/28852

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Thu Apr 7 11:37:39 2005 UTC (7 years, 1 month ago) by tron
Branch: netbsd-3
CVS Tags: 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
Branch point for: netbsd-3-0
Changes since 1.68.2.1: +14 -11 lines
Diff to previous 1.68.2.1 (colored) to branchpoint 1.68 (colored)

Pull up revision 1.70 (requested by dsl in ticket #119):
Check quoting before merging ifs regions.
sh -c 'set -- a; x="b c"; set -- "$@"$x'
now correctly gives $1=ab, $2=c

Revision 1.68.2.1 / (download) - annotate - [select for diffs], Thu Apr 7 11:36:28 2005 UTC (7 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.68: +5 -4 lines
Diff to previous 1.68 (colored)

Pull up revision 1.69 (requested by dsl in ticket #118):
Don't merge ifs regions with different quoting requirements

Revision 1.70 / (download) - annotate - [select for diffs], Sat Mar 19 16:38:27 2005 UTC (7 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.69: +14 -11 lines
Diff to previous 1.69 (colored)

Check quoting before merging ifs regions.
sh -c 'set -- a; x="b c"; set -- "$@"$x'
now correctly gives $1=ab, $2=c

Revision 1.69 / (download) - annotate - [select for diffs], Sat Mar 19 15:02:58 2005 UTC (7 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.68: +5 -4 lines
Diff to previous 1.68 (colored)

Don't merge ifs regions with different quoting requirements

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 14 20:46:26 2005 UTC (7 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.67: +4 -3 lines
Diff to previous 1.67 (colored)

expbackq() was incorrectly backing up a temporary buffer when removing \n
from the end of output of commands inside $(...) substitutions.
If the program output is n*128+1 bytes long (ending in a \n) then the code
checks buf[-1] for another \n - looking an uninitialised stack.
On a big-endian system an integer of value 10 will satisfy this (unlikely
on little endian) and can happen depending on the last code path to use
a lot of stack!
This caused the problem with newvers.sh on sparc64 after ', 2005' was
added to the date list.
Fixed PR/28852

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jul 13 15:05:59 2004 UTC (7 years, 10 months ago) by seb
Branch: MAIN
Changes since 1.66: +25 -2 lines
Diff to previous 1.66 (colored)

Add new builtin `wordexp' to support wordexp(3).

From FreeBSD.
Provided in PR lib/26123.
Approved by kleink@.

Revision 1.66 / (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.65: +26 -7 lines
Diff to previous 1.65 (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.65 / (download) - annotate - [select for diffs], Sat Jun 26 20:48:44 2004 UTC (7 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.64: +2 -5 lines
Diff to previous 1.64 (colored)

Remove a broken optimistion that crept in earlier today.

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

Kill a diagnostic I accidentally left in.

Revision 1.63 / (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.62: +116 -99 lines
Diff to previous 1.62 (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.62 / (download) - annotate - [select for diffs], Wed Jun 9 12:17:36 2004 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.61: +5 -3 lines
Diff to previous 1.61 (colored)

Undo previous fix, breaks:
#!/bin/sh
echo ${1+"$@"}
./sh.new foo.sh a b c
a b c b c
I'll revisit this when I have some more time.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 8 03:29:51 2004 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.60: +3 -5 lines
Diff to previous 1.60 (colored)

"for i in ${x-a b c}; do echo $i; done" should print "a\nb\nc\n" not "a b c\n"
like other shells do. mark the expansion for ifs splitting. XXX: linux has a
very complicated fix for this. I wonder why.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Dec 21 08:32:39 2003 UTC (8 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: netbsd-2-base, 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-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-0, netbsd-2
Changes since 1.59: +3 -5 lines
Diff to previous 1.59 (colored)

minor optimization in evalvar()
change sent in bin/23813 by VaX#n8

Revision 1.59 / (download) - annotate - [select for diffs], Mon Sep 22 12:17:24 2003 UTC (8 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.58: +7 -8 lines
Diff to previous 1.58 (colored)

Fix 'set "*" b; case "* b" in "$@") ...' and 'set "*"; case 1 in "${#1}") ...'
Which got broken by the previous fix.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Sep 17 16:01:19 2003 UTC (8 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.57: +5 -4 lines
Diff to previous 1.57 (colored)

PR/22640: Paul Jarc: sh mishandles positional parameters in case. Fixed
from FreeBSD PR 56147.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 7 09:05:32 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.56: +3 -7 lines
Diff to previous 1.56 (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.56 / (download) - annotate - [select for diffs], Sun Nov 24 22:35:39 2002 UTC (9 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.55: +56 -109 lines
Diff to previous 1.55 (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.55 / (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.54: +3 -4 lines
Diff to previous 1.54 (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.54 / (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.53: +4 -3 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Wed May 15 14:59:21 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.52: +13 -2 lines
Diff to previous 1.52 (colored)

Implement unset variable error messages from Ben Harris.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Mon Jan 14 14:44:58 2002 UTC (10 years, 4 months ago) by he
Branch: netbsd-1-4
Changes since 1.45.2.1: +7 -4 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored)

Pull up revision 1.52 (requested by itojun):
  Do not truncate expr > 10 digits.  Fixes PR#13943.

Revision 1.49.4.1 / (download) - annotate - [select for diffs], Mon Oct 8 19:50:50 2001 UTC (10 years, 7 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.49: +7 -4 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Pull up revision 1.52 (requested by itojun):
  Do not truncate expr > 10 digits.  Fixes PR#13943.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Sep 19 06:38:19 2001 UTC (10 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: ELRICshvfork-base, ELRICshvfork
Changes since 1.51: +7 -4 lines
Diff to previous 1.51 (colored)

make sure we do not truncate arith expresssion > 10 digits.
freebsd bin/sh/expand.c revision 1.15.  NetBSD PR 13943.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Mar 30 17:45:00 2001 UTC (11 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Globbing should match broken symlinks.  stat()->lstat() to fix this.

Revision 1.50 / (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.49: +4 -3 lines
Diff to previous 1.49 (colored)

remove redundant declarations and nexted externs.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Mar 13 22:47:19 2000 UTC (12 years, 2 months ago) by soren
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.48: +3 -3 lines
Diff to previous 1.48 (colored)

Fix doubled 'the' in comment.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jul 9 03:05:50 1999 UTC (12 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.47: +10 -10 lines
Diff to previous 1.47 (colored)

compile with WARNS = 2

Revision 1.47 / (download) - annotate - [select for diffs], Fri Apr 30 17:54:17 1999 UTC (13 years ago) by he
Branch: MAIN
Changes since 1.46: +6 -6 lines
Diff to previous 1.46 (colored)

Fix for bin/7502, from Tor Egge / FreeBSD.  Their commit message:
> During variable expansion, the internal representation of the expression
> might be relocated.  Handle this case.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Wed Apr 7 17:24:02 1999 UTC (13 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Pull up 1.45-1.46.  Corrects what's obviously a typo.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Apr 6 21:05:27 1999 UTC (13 years, 1 month ago) by he
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Correct a rather obvious typo (once Tor Egge pointed it out to me)
in the last change.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Mar 26 15:49:34 1999 UTC (13 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.44: +58 -16 lines
Diff to previous 1.44 (colored)

PR/7231: Havard Eidnes: Shell quoting/trimming problem

Revision 1.44 / (download) - annotate - [select for diffs], Sat Feb 6 17:23:09 1999 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

Fix off-by-one error in the starting point to search for an arithmetic
expression.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Feb 5 07:52:52 1999 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.42: +2 -3 lines
Diff to previous 1.42 (colored)

PR/5577: Craig M. Chase: sh does not build with PARALLEL set.
- Added YHEADER in Makefile, removed arith.h and adjusted the sources.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Jan 25 14:20:56 1999 UTC (13 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +173 -56 lines
Diff to previous 1.41 (colored)

Patches from Tor Egge (via Havard Eidnes) to fix various bugs in field
splitting and combining.
(Note: Some of this are not strictly bugs, but differences between traditional
Bourne shell and POSIX.)

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

Be more retentive about use of NOTREACHED and noreturn.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 26 19:44:12 1998 UTC (13 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

const poisoning.

Revision 1.31.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.31: +62 -57 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with trunk, per request of christos.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Mar 29 04:41:44 1998 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.38: +6 -6 lines
Diff to previous 1.38 (colored)

- change "extern" variables into int's
- remove extern'd variables not actually referenced
- don't use char as an array index

Revision 1.38 / (download) - annotate - [select for diffs], Mon Mar 23 18:21:02 1998 UTC (14 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.37: +18 -22 lines
Diff to previous 1.37 (colored)

Fix the VSTRIMRIGHT* bugs... The problem was not the string length computation,
but lack of '\0' termination. Factor this segment out as common code too, while
I am there.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 10 19:11:07 1998 UTC (14 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.36: +3 -4 lines
Diff to previous 1.36 (colored)

off by one error in ${%%}

Revision 1.36 / (download) - annotate - [select for diffs], Tue Feb 17 00:16:16 1998 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.35: +7 -9 lines
Diff to previous 1.35 (colored)

Previous fix broke $var quoting. Try again differently :-)

Revision 1.35 / (download) - annotate - [select for diffs], Thu Feb 5 08:32:00 1998 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.34: +23 -20 lines
Diff to previous 1.34 (colored)

Fix bug introduced by EXP_RECORD, where in case there was a variable expansion
involved in the `for' list, the list was recorded twice, leading to incorrect
argument expansion.
Introduce ifsfree() function that free's the IFS region list, GC'ing duplicated
code.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 31 12:45:07 1998 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.33: +6 -3 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Mon Dec 1 14:43:20 1997 UTC (14 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.32: +19 -22 lines
Diff to previous 1.32 (colored)

Unfortunately (as I expected) the previous change broke:

    sleep
    cmd='set `type "sleep"`; eval echo \$$#'
    which=`eval $cmd`
    echo $which

because the region did not get recorded at all, and it was interpreted as
a single word. I modified the code to keep track when the result of a
backquote expansion has been recorded to avoid recording it twice. I still
feel that this is not the right fix... More to come.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Nov 30 20:57:33 1997 UTC (14 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.31: +12 -3 lines
Diff to previous 1.31 (colored)

PR/4547: Joern Clausen: Incorrect argument expansion in backquote variable
assignment. E.g.
	echo ${foo:=`echo 1 2 3 4`}
prints:
	1 2 3 1 2 3 4
because when the arquments are not quoted, the backquote result
gets recorded twice.  The fix right now is to comment out the
record_region() call in expbackq().  I hope that it does not break
anything else.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 7 20:41:10 1997 UTC (14 years, 10 months ago) by phil
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.30: +5 -3 lines
Diff to previous 1.30 (colored)

Make code agree with man page in processing expansion of "$*".
Fix from PR 2647.

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

Fix compiler warnings.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Mar 18 18:54:40 1997 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.28: +4 -6 lines
Diff to previous 1.28 (colored)

PR/3352: From Hiroyuki Ito: ${#1} was not being expanded properly if there
was a need to allocated another stack block.

Revision 1.20.4.3 / (download) - annotate - [select for diffs], Tue Mar 4 15:18:12 1997 UTC (15 years, 2 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.20.4.2: +15 -10 lines
Diff to previous 1.20.4.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Pull up latest sh(1).  Fixes yet more bugs.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 3 19:26:18 1997 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.27: +15 -10 lines
Diff to previous 1.27 (colored)

varisset fixes:
	- treat $0 specially since it is not in shellparams
	- check the number of parameters instead of walking
	  the parameters array to avoid checking against the
	  null terminated element.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Sun Mar 2 21:14:01 1997 UTC (15 years, 2 months ago) by mycroft
Branch: netbsd-1-2
Changes since 1.20.4.1: +3 -3 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored)

Pull up off-by-one fix.

Revision 1.27 / (download) - annotate - [select for diffs], Sat Mar 1 19:33:29 1997 UTC (15 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

PR/3269: Off by one in varisset(), caused variable substitution not to
count the last positional parameter as set.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Sun Jan 26 04:57:19 1997 UTC (15 years, 4 months ago) by rat
Branch: netbsd-1-2
Changes since 1.20: +78 -47 lines
Diff to previous 1.20 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jan 24 17:26:28 1997 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.25: +40 -14 lines
Diff to previous 1.25 (colored)

- varisset(): In positional arguments, take into account VSNUL so that:
  set -- ""; echo ${1:-wwww} works.
- when expanding arithmetic, discard previous ifs recorded regions, since we
  are doing our own scanning. x=ab; echo $((${#x}+1)) now works.
- in ${var#word} fix two bugs:
   * if there was an exact match, there was an off-by-one bug in the
     comparison of the words. x=abcd; echo ${x#abcd}
   * if there was no match, the stack region was not adjusted and the rest
     of the word was getting written in the wrong place. x=123; echo ${x#abc}X

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

kill 'register'

Revision 1.24 / (download) - annotate - [select for diffs], Sat Nov 2 18:07:08 1996 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.23: +3 -4 lines
Diff to previous 1.23 (colored)

A correction to the previous patch from Todd Miller.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Nov 2 17:47:41 1996 UTC (15 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

echo ${1:-empty} did not do the substitution; from Todd Miller (OpenBSD)

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 16 14:38:58 1996 UTC (15 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.21: +34 -31 lines
Diff to previous 1.21 (colored)

PR/2808: Fix parsing of $n where n > 9 (from FreeBSD)

Revision 1.21 / (download) - annotate - [select for diffs], Mon Sep 2 21:25:52 1996 UTC (15 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored)

Don't infinite loop with:
	unset var
	echo ${var:=}

Revision 1.20 / (download) - annotate - [select for diffs], Mon Feb 12 15:11:41 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.19: +20 -11 lines
Diff to previous 1.19 (colored)

Fix PR/2070: Ksh style variable modifiers were broken in /bin/sh, from
enami tsugutomo

Revision 1.19 / (download) - annotate - [select for diffs], Mon May 15 02:47:41 1995 UTC (17 years 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.18: +3 -3 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Thu May 11 21:29:06 1995 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.17: +35 -50 lines
Diff to previous 1.17 (colored)

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

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

convert to new RCS id conventions.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 28 23:27:24 1995 UTC (17 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Oops... typo in the IFS previous fix.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 28 23:09:43 1995 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.14: +4 -2 lines
Diff to previous 1.14 (colored)

Changed so that backquote expansion eats all trailing newlines, not just
the last one.
Reported by guido@gvr.win.tue.nl (Guido van Rooij).
Repeat By:

	echo "`cat file-with-many-newlines`"

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 28 22:46:12 1995 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.13: +7 -5 lines
Diff to previous 1.13 (colored)

Changed IFS string-splitting so that it breaks spaces even when IFS does not
begin with a space, but contains one. Fixes PR bin/809.

        #!/bin/sh
        list="a  b c "
        echo "With ordinary IFS"
        for i in $list;do
            echo $i
        done
        IFS=":${IFS}"
        echo "With changed IFS"
        for i in $list;do
            echo $i
        done

Note that before the fix ":${IFS}" behaved differently than "${IFS}:".

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 23 06:33:03 1995 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.12: +207 -41 lines
Diff to previous 1.12 (colored)

I added the documented in the manual but not implemented variable expansions:

    ${#WORD}
    ${WORD%PAT}
    ${WORD%%PAT}
    ${WORD#PAT}
    ${WORD##PAT}

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

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

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Mon Aug 29 02:21:27 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.10: +3 -1 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

update from trunk

Revision 1.11 / (download) - annotate - [select for diffs], Mon Aug 29 01:54:39 1994 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +3 -1 lines
Diff to previous 1.10 (colored)

Fix problem with character classes matching a terminating NUL, from Henry
Spencer.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 11 16:11:54 1994 UTC (17 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Add RCS ids.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 12 17:03:38 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:09:57 1994 UTC (18 years ago) by jtc
Branch: MAIN
Changes since 1.7: +199 -152 lines
Diff to previous 1.7 (colored)

sync with 4.4lite

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

44lite code

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 22 13:32:22 1993 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

Last patch was wrong; just save argbackq around the argstr() call.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 22 13:20:02 1993 UTC (18 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

evalvar():  If subtype is VSASSIGN (or VSQUESTION), argstr() already rolled
forward the backquote queue.  If VSQUESTION it doesn't matter because we
already exited with an error.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 1 18:58:16 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], Sun May 2 01:28:40 1993 UTC (19 years ago) by sef
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: +11 -5 lines
Diff to previous 1.3 (colored)

Jim "wilson@moria.cygnus.com" Wilson's patches to make C News (and other
things) work.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:28:00 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>