From owner-freebsd-bugs Fri Mar 1 09:01:28 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA24652 for bugs-outgoing; Fri, 1 Mar 1996 09:01:28 -0800 (PST) Received: from omega.physik.fu-berlin.de (omega.physik.fu-berlin.de [130.133.3.51]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id JAA24616 for ; Fri, 1 Mar 1996 09:01:18 -0800 (PST) Received: from prospero.physik.fu-berlin.de (graichen.dialup.fu-berlin.de [160.45.217.183]) by omega.physik.fu-berlin.de (8.7.1/8.7.1) with ESMTP id SAA30993 for ; Fri, 1 Mar 1996 18:01:11 +0100 (MET) Received: (from news@localhost) by prospero (8.6.12/8.6.12) id IAA04629; Fri, 1 Mar 1996 08:31:24 +0100 To: bugs@FreeBSD.org Path: graichen From: graichen@omega.physik.fu-berlin.de (Thomas Graichen) Newsgroups: local.freebsd-bugs Subject: Re: bin/1052: /bin/sh problem with new GCC (snapshot for 2.8) Date: 1 Mar 1996 07:31:23 GMT Organization: his FreeBSD box :-) Lines: 26 Distribution: local Message-ID: <4h694b$4eq@prospero.physik.fu-berlin.de> References: <199602292227.XAA05612@noisy.matematik.su.se> NNTP-Posting-Host: localhost.physik.fu-berlin.de X-Newsreader: TIN [version 1.2 PL2] Sender: owner-bugs@FreeBSD.org Precedence: bulk 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