X-Recipient: archive-cygwin@delorie.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:mime-version:date:message-id:subject:from:to
	:content-type; q=dns; s=default; b=ipY5rXrtzoJf6QJADW+/9urPQ9CrK
	/Vw2y1G/w7mvmWid1v2qqTSSy2yvDouJaRvO35tZ/4JMpYyLG4An7XjzvpvGaqYl
	MVp3k+0xqZ9dD9nuqV+gdR3wNq0WOXRMAgxz5WPqUmKULfhMXfZYIoMHBc0jGLx2
	Eu7fZ1NlZdrAos=
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:mime-version:date:message-id:subject:from:to
	:content-type; s=default; bh=9TC+8OFWRQk/GLzsRccU8t6MfqI=; b=p8M
	XVLOju5+8ZPqqjT7D1xYxb20329LWjDuPHN4tlWPL1m/VF0khfFQfkOKOjkxXhFS
	iXN48vfcbSby1zyt1m1mS4RYYkQwqd54kHKtR+Do5UtBshtL6cl7n+HCZcJdcwOf
	w4Qx1AwzwZ1t9oB7dmG7h5t1/4WK2B4w5i7lgQrs=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_TK,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-la0-f47.google.com
MIME-Version: 1.0
X-Received: by 10.152.21.132 with SMTP id v4mr16137233lae.18.1435614335184; Mon, 29 Jun 2015 14:45:35 -0700 (PDT)
Date: Mon, 29 Jun 2015 14:45:35 -0700
Message-ID: <CAO-z7kzjRBrADMYd1h79=VTdY8ME9jLKrFgg+-SFZvRDWduScw@mail.gmail.com>
Subject: tclsh does not export changes to env to child process
From: Stas Maximov <stas.maximov@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8

Hi,

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


Thanks,
Stas.

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

