Date: Sun, 10 May 1998 12:52:46 -0700 (PDT) From: iverok@sum.uio.no To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/6577: /bin/sh environment variables not set in simple commands Message-ID: <199805101952.MAA02340@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805101952.MAA02340>