]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
PR 28852
authorMartin Cracauer <cracauer@FreeBSD.org>
Sun, 28 Dec 2003 02:05:12 +0000 (02:05 +0000)
committerMartin Cracauer <cracauer@FreeBSD.org>
Sun, 28 Dec 2003 02:05:12 +0000 (02:05 +0000)
commitbd80d26f3b2fc205d7351ec17e029625f915a687
tree0d471e13dfc235ee10f22f987870187f57a1b9ff
parent5caf2b00f0d473b1370a7fbbbd11cf9cd3be1a82
PR 28852

sh -e behaviour was incorrect when && and || statements where used in
"if" clauses.

This is the patch submitted by MORI Kouji <mori@tri.asanuma.co.jp>.

It fixes the issue at hand, but sh fixes like this are super-hard to
verify that they don't break anything else.  I ran some of my old test
cases and a few big GNU configure scripts that detected mistakes
before, with the previous sh, patched sh and bash.  No differences in
behaviour found.  MFC recommended after longer than usual time.

Compiles on i386 and sledge.
bin/sh/eval.c