Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 1996 02:40:02 -0800 (PST)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs
Subject:   Re: bin/1052: /bin/sh problem with new GCC (snapshot for 2.8)
Message-ID:  <199603011040.CAA03191@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1052; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: FreeBSD-gnats-submit@FreeBSD.ORG, tege@matematik.su.se
Cc:  Subject: Re: bin/1052: /bin/sh problem with new GCC (snapshot for 2.8)
Date: Fri, 1 Mar 1996 21:29:09 +1100

 >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
 
 This is fixed in the following versions of ash:
 
 	the one in FreeBSD-1.1.5
 	the original one + assorted fixes from various places
 	the one in BSD-4.4lite2
 
 Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603011040.CAA03191>