| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
| X-Originating-IP: | [216.244.24.25] |
| X-Originating-Email: | [rkitover AT hotmail DOT com] |
| X-Sender: | rkitover AT hotmail DOT com |
| From: | "Rafael Kitover" <caelum AT debian DOT org> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: Problems with tcl "exec" command and "sh" in Cygwin. |
| Date: | Sat, 31 Jan 2004 01:27:30 -0800 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <401B262D.9030907@lsil.com> |
| Message-ID: | <BAY12-DAV37Xr6nbb3M00003ddd@hotmail.com> |
| X-OriginalArrivalTime: | 31 Jan 2004 09:27:39.0541 (UTC) FILETIME=[78680450:01C3E7DC] |
>-----Original Message-----
>From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of
>Gancho Tenev
>Sent: Friday, January 30, 2004 7:51 PM
>To: cygwin AT cygwin DOT com
>Subject: Problems with tcl "exec" command and "sh" in Cygwin.
>
[SNIP]
>script: 1.tcl
>------------------------------
>#!/bin/sh
># \
>exec tclsh "$0" ${1+"$@"}
>
>puts "result= [ exec 2.tcl ]"
>exit
>------------------------------
>
>script: 2.tcl
>------------------------------
>#!/bin/sh -e
># \
>exec tclsh "$0" ${1+"$@"}
>
>puts "Hello, World!"
>exit
>------------------------------
>
>
>* when I run on Unix:
>$./1.tcl
>result = Hello, World!
>
>
>* when I run it in Cygwin.
>$./1
>couldn't execute "2.tcl": no such file or directory
> while executing
>"exec 2.tcl "
> invoked from within
>"puts "result= [ exec 2.tcl ]""
> (file "./1.tcl" line 5)
[SNIP]
Try changing this to "[ exec /path/to/2.tcl ]".
>* But 2 days ago we decided to reinstall Cygwin (latest)
>and now it is hanging on "exec sh" infinitely.
>It seems something has changed! We didn't do anything
>special before and now while installing cygwin.
>
>Any ideas and suggestions are greatly appreciated!
>I tried to give concise description so please let me
>know if I need to provide more info!
>
>Best regards!
> Gancho.
Upgrade to the just released Cygwin 1.5.7, and it should be fine.
--
Rafael
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |