delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/30/16:43:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4CCC835A.9070909@gmail.com>
Date: Sat, 30 Oct 2010 16:43:06 -0400
From: Craig Miller <cvmiller AT gmail DOT com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: Stas Maximov <smaximov AT broadcom DOT com>
Subject: Re: cygwin-1.7.7: tclsh84 does not pass environment to exec sub-process
References: <89AE14E37D740B4796DC14566DF6325ECB7F4AD907 AT SJEXCHCCR02 DOT corp DOT ad DOT broadcom DOT com>
In-Reply-To: <89AE14E37D740B4796DC14566DF6325ECB7F4AD907@SJEXCHCCR02.corp.ad.broadcom.com>
X-IsSubscribed: yes
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

Hi Stas,

This may help you. I had the need to compile a more recent version of 
expect on cygwin for my open source project expect-lite. Expect is built 
on TCL, and I used the most recent version 8.5.9.
http://expect-lite.sourceforge.net/expect-lite_cygwin.html

I have put the recent version of expect up at:
http://expect-lite.sourceforge.net/cygwin/cygwin_expect_5_45.tar.gz

Alas it is not a cygwin package yet, just a tarball. You will want to 
untar in from /
There is no tclsh executable, but there is an executable expect, which 
includes all the tcl stuff as well.

This will give you an idea of tcl version 8.5.9 will solve your 
environment problems.

good luck,

Craig...


On 10/29/10 7:39 PM, Stas Maximov wrote:
> Hello!
>
> Using cygwin 1.7.7, tclsh84 does not pass its environment to a sub-process created with exec command.
>
> Test case:
>
> # Starting from cygwin bash command line,
> # record your current environment
> $ env | sort>  env0.txt
>
> # Start tclsh84
> $ tclsh84
>
> # Execute the same command from tclsh84, exit
> % exec env | sort>  env1.txt
> % exit
>
> # Compare two environments
> $ diff -u env0.txt env1.txt
>
> # Observe large number of environment variables not present in env1.txt.
>
>
> Questions:
>
> 1. Is this new to 1.7? My vague recollection is that this was not a problem in cygwin 1.5.
> 2. Is there a quick workaround? E.g. tclsh flag or environment variable or replacing cygwin1.dll with older version.
>
> Please CC me when replying.
>
> Best regards,
> 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

- Raw text -


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