Date: 1 Mar 1996 07:31:23 GMT From: graichen@omega.physik.fu-berlin.de (Thomas Graichen) To: bugs@FreeBSD.org Subject: Re: bin/1052: /bin/sh problem with new GCC (snapshot for 2.8) Message-ID: <4h694b$4eq@prospero.physik.fu-berlin.de> References: <199602292227.XAA05612@noisy.matematik.su.se>
next in thread | previous in thread | raw e-mail | index | archive | help
tege@matematik.su.se wrote: : >Synopsis: /bin/sh problem with new GCC (snapshot for 2.8) ... : >Release: FreeBSD 2.1-STABLE i386 maybe it's solved in -current ? : >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 looks like it's interpreting the $$ as the pid of the process and thus ignoring the \\ 's t -- thomas graichen graichen@mail.physik.fu-berlin.de graichen@FreeBSD.org perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away antoine de saint-exupery
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4h694b$4eq>