From mboxrd@z Thu Jan 1 00:00:00 1970 From: DG Ellis To: egcs@cygnus.com Cc: gnu-win32@cygnus.com Subject: Re[2]: env command does not work correctly. Date: Tue, 08 Apr 1997 18:15:00 -0000 Message-id: <08> <97> <13:07:28> X-SW-Source: 1997-04/msg00156.html Text item: Simple minor note that the $foo in the command below is interpreted by the original command line interpreter before the actual statement is executed. This is why this example will not work. The example given in the post by Fabio is correct in its use. You could try: foo=hi eval echo '$foo' This would cause $foo to be protected first time arround, then let eval evaluate the command after the assignment and do the echo. FWIW Dave Ellis ______________________________ Reply Separator _________________________________ Subject: Re: env command does not work correctly. Author: gnu-win32-owner@cygnus.com at SMTPGATE Date: 4/4/97 3:30 PM env is a command typically used in csh-like shells. With bash, you can just say: ONE=one TWO=two echo_1_2 This also does not work with cygwin32 17.1. The simple statement: foo=hello echo $foo doesn't work. Also I am not real familiar with unix so I don't know if this is a bug or not: Only uppercase environment variables can be exported. +------------------------------+------------------------------------+ | Scott A. Mintz | voice: (216) 646-4805 | | Allen-Bradley Company | fax: (216) 646-4961 | | 1 Allen-Bradley Drive | email: scott.mintz@po.cle.ab.com | | Mayfield Hts., OH 44124-6118 | CIS: 71461,632 | +------------------------------+------------------------------------+ ______________________________ Reply Separator ________________________________ _ Subject: env command does not work correctly. Author: Fabio@Colorado.EDU at Internet Date: 4/3/97 2:02 PM >>>>> "JDR" == John D Robertson writes: JDR> Platform: Win95 / Intel Release: B17.1 JDR> The "env" command does not set environmental variables as it is JDR> supposed to. For example: JDR> env ONE=one TWO=two echo_1_2 JDR> where echo_1_2 is a sh script: env is a command typically used in csh-like shells. With bash, you can just say: ONE=one TWO=two echo_1_2 Under Linux, env works fine with both tcsh and bash. I haven't tried env with cygwin---I wasn't even aware of its inclusion---and right now I have no access to my Win95 laptop. But it looks like a bug. Fabio -- Fabio Somenzi | Phone: 303-492-3466 University of Colorado | Fax: 303-492-2758 ECE Dept. | Email: Fabio@Colorado.EDU Boulder CO 80309-0425 | WWW: http://vlsi.colorado.edu/~fabio - For help on using this list, send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". - For help on using this list, send a message to "gnu-win32-request@cygnus.com" with one line of text: "help". Text item: External Message Header The following mail header is for administrative use and may be ignored unless there are problems. ***IF THERE ARE PROBLEMS SAVE THESE HEADERS***. Precedence: bulk Sender: owner-gnu-win32@cygnus.com Content-Description: cc:Mail note part Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: gnu-win32@cygnus.com To: "John D. Robertson" , Fabio@Colorado.EDU Subject: Re: env command does not work correctly. From: Scott.Mintz@po.cle.ab.com (Scott Mintz) Message-ID: < 00037E4E.1893@po.cle.ab.com > Date: Fri, 4 Apr 1997 15:30:58 -0500 Mime-Version: 1.0 Received: from ccMail by po.cle.ab.com (IMA Internet Exchange 2.1 (Gold Candidate) Enterprise) id 00037E4E; Fri, 4 Ap r 97 15:35:40 -0500 Received: from po.cle.ab.com (po.cle.ab.com [130.151.192.20]) by po.ab.com (8.7. 1/RA1.1) with SMTP id PAA18225; Fri, 4 Apr 1997 15:38:42 -0500 (EST) Received: from po.ab.com(130.151.128.20) by extfw.cle.ra.rockwell.com via smap ( 3.2) id xma010199; Fri, 4 Apr 97 15:44:17 -0500 Received: by extfw.cle.ra.rockwell.com; id PAA10250; Fri, 4 Apr 1997 15:44:34 -0 500 Received: from extfw.cle.ra.rockwell.com (firewall-user@extfw.cle.ra.rockwell.co m [192.159.76.10]) by cygnus.com (8.8.5/8.8.5) with SMTP id MAA25963 for ; Fri, 4 Apr 1997 12:44:41 -0800 (PST) Received: (from daemon@localhost) by cygnus.com (8.8.5/8.8.5) id MAA25968 for gnu-win32-outgoing; Fri, 4 Apr 1997 12:44:48 -0800 (PST) Received: from cygnus.com (cygnus.com [205.180.230.20]) by mailbag.jf.intel.com (8.8.5/8.7.3) with ESMTP id DAA24047; Sat, 5 Apr 1997 03:15:33 -0800 (PST) Received: from mailbag.jf.intel.com (mailbag.jf.intel.com [134.134.248.4]) by re lay.jf.intel.com (8.7.6/8.7.3) with ESMTP id DAA25843; Sat, 5 Apr 1997 03:13:19 -0800 (PST) Return-Path: gnu-win32-owner@cygnus.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".