From owner-freebsd-bugs Thu Feb 29 14:45:25 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.FreeBSD.org (8.7.3/8.7.3) id OAA15712 for bugs-outgoing; Thu, 29 Feb 1996 14:45:25 -0800 (PST) Received: (from gnats@localhost) by freefall.FreeBSD.org (8.7.3/8.7.3) id OAA15559 Thu, 29 Feb 1996 14:42:44 -0800 (PST) Resent-Date: Thu, 29 Feb 1996 14:42:44 -0800 (PST) Resent-Message-Id: <199602292242.OAA15559@freefall.FreeBSD.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, tege@noisy.matematik.su.se Received: from noisy.matematik.su.se ([130.237.198.146]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA14876 for ; Thu, 29 Feb 1996 14:30:03 -0800 (PST) Received: (from tege@localhost) by noisy.matematik.su.se (8.6.12/8.6.12) id XAA05612; Thu, 29 Feb 1996 23:27:57 +0100 Message-Id: <199602292227.XAA05612@noisy.matematik.su.se> Date: Thu, 29 Feb 1996 23:27:57 +0100 From: tege@matematik.su.se Reply-To: tege@noisy.matematik.su.se To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1052: /bin/sh problem with new GCC (snapshot for 2.8) Sender: owner-bugs@FreeBSD.ORG Precedence: bulk >Number: 1052 >Category: bin >Synopsis: /bin/sh problem with new GCC (snapshot for 2.8) >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 29 14:40:03 PST 1996 >Last-Modified: >Originator: Torbjorn Granlund >Organization: TMG Datakonsult >Release: FreeBSD 2.1-STABLE i386 >Environment: Hardly relevant. >Description: The /bin/sh of FreeBSD doesn't work as on other systems, or like bash. The problem seems to be with the builtin `eval'. >How-To-Repeat: bash$ foo=tomte; var=foo; echo `eval echo \\$$var` tomte sh$ foo=tomte; var=foo; echo `eval echo \\$$var` 5578var >Fix: I don't know of any fix that is compatible with a non-flawed sh. A fix would be desirable if you want your users that install GCC 2.8 to avoid problems. Just imagine the flood of bug reports that you will get... If you provide me with a (reasonable) fix, I will put it in to the gcc repository in time for 2.8. >Audit-Trail: >Unformatted: