delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/13/10:57:29

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <jurgen DOT defurne AT philips DOT com>, <cygwin AT cygwin DOT com>
Subject: RE: Command boxes popping up
Date: Mon, 13 Dec 2004 15:54:53 -0000
MIME-Version: 1.0
In-Reply-To: <OF2F5296AF.C46943D8-ONC1256F69.0054E20C-C1256F69.00560A39@philips.com>
Message-ID: <NUTMEGQYYAr27kicP3l00000679@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 13 Dec 2004 15:54:53.0796 (UTC) FILETIME=[160CBA40:01C4E12C]

> -----Original Message-----
> From: cygwin-owner On Behalf Of jurgen.defurne
> Sent: 13 December 2004 15:39

> Hi Dave,
> 
> No, I have no problems with graphical applications.

  Cool, it would have _really_ confused me if you did!

> My scripts run a variety of commands, mostly cygwin,
> but some applications run in a DOS shell.
> 
> To elaborate, I run bash, and inside this shell I start 
> ActiveState Perl,
> which of course knows nothing about Cygwin. The script run by
> ActiveState's Perl, then starts system or `` commands, and it is
> from there that I get command boxes.
> 
> I have run a small test :
> $ /cygdrive/c/Perl/bin/perl -e "system \"dir\""
> 
> and this pops up a DOS command box while the command
> executes.
> 
> I did not have that before, and the only thing changed was
> the upgrade to Cygwin 1.5.11.

  Nonetheless, it would seem that ActiveState Perl is the thing with the bug in
it.  Not being a cygwin program, a change to the cygwin dll could hardly affect
ActiveState Perl's behaviour, could it?

  Well, it shouldn't of course, but I can imagine one way in which it could.

  Bear in mind that running inside the bash shell - unlike if you were to just
try your test from a cmd.exe shell - has one major difference: the $PATH setting
includes the cygwin bin directories at the front.

  Now, given that cygwin includes its own distribution of Perl, which presumably
is also called "perl.exe", we have a potential for clashes here.

  FWIW, running the example that you gave with cygwin perl doesn't produce a DOS
box.  I'm not surprised that AS perl wants to have its system commands run in a
dos box, as that's the only system it knows about.  OTOH I see Jason's post
saying that he can't reproduce your problem.  Therefore I suggest the two of you
compare $PATH settings, in particular which order AS perl and cygwin's bin
directories occur in both your $PATHs, and that may give us some further
clues...

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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

- Raw text -


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