delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/13/12:42:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <65CAA822B707D211AD430008C7F40FED1F85B2@EXCHANGERSW2>
From: "McCunney, Dennis" <DMcCunney AT roper DOT com>
To: "'Mike Kuhl'" <mkuhl AT pixstream DOT com>
Cc: "Cygwin Mailing list (E-mail)" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: Tcl exposes problem with cygwin/echo?
Date: Tue, 13 Jul 1999 12:37:50 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

> -----Original Message-----
> From: Mike Kuhl [mailto:mkuhl AT pixstream DOT com]
> Sent: Monday, July 12, 1999 5:19 PM
> To: 'cygwin mailing list'
> Subject: Tcl exposes problem with cygwin/echo?
> 
> I seem to be having a problem.  I'm using cygwin B20.  When I 
> invoke a tcl interactive shell, and do this:
> 
> % set test {"This is a test."}
> % exec echo $test
> 
> I get this:
> 
> "This is a test.\
> 
> Under unix, I get the expected behaviour:
> 
> "This is a test."
> 
> Can anyone explain what the problem is, or what I'm doing 
> wrong?  Any help would be much appreciated.

I see that too.  If I go to a shell and invoke Cygwin echo directly, as 

.\echo "This is a test."

it is handled properly. I can also get it to output the expected 
value within a tcl shell by removing the " around "This is a test".

I see the same problem whether I run itcl_sh or itcl_wish, and whether 
I do it from bash or another shell (4DOS, in my case).

The problem seems to happen in the handoff by exec from Tcl to 
echo, where something is mishandling the double quote char.

Tcl 7.6 on my SCO Unix server handles it properly.

For that matter, I had several different Win32 ports of Tcl from 
other sources, before I acquired the b20 Cygwin distribution.  
Since I'd like to reduce confusion and have _one_ Tcl version on 
my machine, I did a bit of testing.  I discovered that the Cygwin 
ports did not properly run some of the standard tcl scripts from 
the other distributions - I had to use the (apparently identical) 
scripts provided with the Cygwin tools to get the expected behavior.  
I haven't had the time to delve into it very deeply, so I have _no_
idea what is going on there thus far.  

______________________
Dennis McCunney
Technical Manager
Manhattan Phone Center
212 387 7550 Voice
212 387 8180 Fax

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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