delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/06/29/23:28:46

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
q=dns; s=default; b=wfyF9GcHqyolNP+Y7HbafjjkaOoJYwXAhooGXQLVz0i
N3nfjLlzCyId+A+Q6DrM18/be/lyTPDYWHt4NarVsvM7eGZkap5B/kYbbUKpO3el
Kut5YH0S9U9JFh8+CQsCFN25/8YQDAkFBTcv1ZY0Np4jZHrm1XXYB+S0HU5tpt7o
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:subject:from:to:date:in-reply-to
:references:content-type:mime-version:content-transfer-encoding;
s=default; bh=rsL1LPb7LDhA7XWjEcCfs0wUc7s=; b=hgj81FR7FBAufhCIS
rAg2gVZNifQYFMmLs44+2G9i8MXCdi6EXzsJqc9Fix8Dra+7qAQUNxPiIm0sujUR
q+s2tv7/rLeOnFJyVw8KGtDOmW+cbIHTXhKoMWBlzfK9/XITZtqPVZIPypeeDXLF
E2wk4WVw/VjaHLDLhXIs4WyCKw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,KAM_TK,SPF_HELO_PASS autolearn=no version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1435634904.5276.11.camel@cygwin.com>
Subject: Re: tclsh does not export changes to env to child process
From: Yaakov Selkowitz <yselkowitz AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Date: Mon, 29 Jun 2015 22:28:24 -0500
In-Reply-To: <CAO-z7kzjRBrADMYd1h79=VTdY8ME9jLKrFgg+-SFZvRDWduScw@mail.gmail.com>
References: <CAO-z7kzjRBrADMYd1h79=VTdY8ME9jLKrFgg+-SFZvRDWduScw AT mail DOT gmail DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

On Mon, 2015-06-29 at 14:45 -0700, Stas Maximov wrote:
> Tcl shell does not export changes to array variable env:
>   http://wiki.tcl.tk/env
> 
> Test script: test_env_export1:
> --------- begin ----------
> set env(FILENAME) filename_val
> puts $env(PATH)
> puts [exec /bin/bash -c {echo $PATH}]
> puts $env(FILENAME)
> puts [exec /bin/bash -c {echo $FILENAME}]
> --------- end ----------
> 
> Expect two lines of output "filename_val", receive only one. The bug
> affects 'guitool' feature of git-gui.
> 
> cygwin 2.0.4-1
> tclsh 8.5

There is no 'tclsh 8.5' package.  Your test case works for me with
the /usr/bin/tclsh provided by our tcl-8.5.18-1 package.  Are you using
some other tclsh?

--
Yaakov



--
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