From owner-freebsd-bugs Sun May 10 12:53:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02400 for freebsd-bugs-outgoing; Sun, 10 May 1998 12:53:23 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02391 for ; Sun, 10 May 1998 12:53:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id MAA22946; Sun, 10 May 1998 12:50:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02340; Sun, 10 May 1998 12:52:46 -0700 (PDT) (envelope-from nobody) Message-Id: <199805101952.MAA02340@hub.freebsd.org> Date: Sun, 10 May 1998 12:52:46 -0700 (PDT) From: iverok@sum.uio.no To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/6577: /bin/sh environment variables not set in simple commands Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6577 >Category: bin >Synopsis: /bin/sh environment variables not set in simple commands >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 10 12:50:00 PDT 1998 >Last-Modified: >Originator: Iver Odin Kvello >Organization: >Release: 2.2.5-RELEASE >Environment: FreeBSD faust.uio.no 2.2-RELEASE FreeBSD 2.2-RELEASE #0: Mon March 24 20:37:01 CET 1997 root@pcsum47.uio.no:/usr/src/sys/compile/BALLE i386 >Description: Gambit-C version 3 depends upon FOO=bar eval echo \$FOO outputting "bar" to build. It outputs nothing. This is contrary to the documented behaviour (for Simple Commands) and to observed behaviour on AiX, Digital Unix and on bash. >How-To-Repeat: #!/bin/sh FOO=ok eval echo \$FOO >Fix: substitute FOO=bar ; eval expr \$FOO or use bash. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message