delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/21/04:51:16

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 21 Feb 2012 10:50:25 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Environment passing bug?
Message-ID: <20120221095025.GD22597@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4F42D201 DOT 4000901 AT cwilson DOT fastmail DOT fm>
MIME-Version: 1.0
In-Reply-To: <4F42D201.4000901@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Feb 20 18:06, Charles Wilson wrote:
> I've observed different behavior with cygwin-1.7.0 on 64bit XP, and
> 32bit XP (I'll check Vista-32 and W7-64 later tonight).  Using the
> following attached win32 program:
> 
> $ i686-pc-mingw32-gcc -o envprint envprint.c
> 
> ====== xp-64 ========
> $ uname -a
> CYGWIN_NT-5.2-WOW64 abcdefgh 1.7.10(0.259/5/3) 2012-02-05 12:36 i686 Cygwin
> 
> $ ./envprint | grep -i temp
> 'TEMP=C:\cygwin\tmp'
> ====== xp-64 ========
> 
> 
> 
> ====== xp-32 ========
> $ uname -a
> CYGWIN_NT-5.1 ijklmnopq 1.7.10(0.259/5/3) 2012-02-05 12:36 i686 Cygwin
> 
> $ ./envprint | grep -i temp
> 'TEMP=C:\cygwin\tmp'
> 'temp=C:\TEMP'
> 'tmp=C:\TEMP'
> ====== xp-32 ========

What I'm missing here is the information how the environment looks
like in terms of the TMP/TEMP variables *before* calling envprint.
Without this the testcase is rather incomplete.

For testing I did

  tcsh$ setenv TEMP /tmp
  tcsh$ setenv TMP /tmp
  tcsh$ ./envprint | grep -i tmp
  'TEMP=C:\cygwin\tmp'
  'TMP=C:\cygwin\tmp'

same result on 32 bit W7 and 64 bit W2K8R2.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019