From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43306 invoked by alias); 30 Jun 2015 03:28:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 43284 invoked by uid 89); 30 Jun 2015 03:28:27 -0000 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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 30 Jun 2015 03:28:26 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 005DBA2C34 for ; Tue, 30 Jun 2015 03:28:24 +0000 (UTC) Received: from YAAKOV04.redhat.com ([10.10.116.34]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5U3SN5P026657 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 29 Jun 2015 23:28:24 -0400 Message-ID: <1435634904.5276.11.camel@cygwin.com> Subject: Re: tclsh does not export changes to env to child process From: Yaakov Selkowitz To: cygwin@cygwin.com Date: Tue, 30 Jun 2015 03:28:00 -0000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-06/txt/msg00408.txt.bz2 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