delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/12/06/14:33:47

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <183c528b0712061133n65913c7ahde45446ca0340cd8@mail.gmail.com>
Date: Thu, 6 Dec 2007 14:33:09 -0500
From: "Brian Mathis" <brian DOT mathis AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Wish Setup would accept my Perl
In-Reply-To: <loom.20071206T192047-253@post.gmane.org>
MIME-Version: 1.0
References: <loom DOT 20071105T183528-568 AT post DOT gmane DOT org> <loom DOT 20071206T171108-921 AT post DOT gmane DOT org> <alpine DOT DEB DOT 0 DOT 82 DOT 0712061353080 DOT 18424 AT pilot DOT trilug DOT org> <loom DOT 20071206T192047-253 AT post DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Dec 6, 2007 2:23 PM, Michael Kairys <kairys AT comcast DOT net> wrote:
> William Sutton <william <at> trilug.org> writes:
> >
> > Having done a bit of this myself, I'm interested into enquiring further
> > into your difficulties.  Except for win32-specific modules, perl code
> > *should* *just work* for either cygwin perl of for ActiveState.  Last I
> > checked (and it's been about a year), you should be able to get the
> > win32-specific modules for cygwin as well, so I'm not sure why you can't
> > just invoke the script in your bash shell and have it run.
>
> Thank you for your encouraging note. I would prefer to maintain only one Perl
> installation and would in fact be perfectly happy to dump AS in favor of
> Cygwin if I could do so without major pain. You have encouraged me to at least
> give it a try.
>

The major pain will come with file path names.  If you are using
Windows paths in your scripts, those will not work in cygwin.  Really
the issue here is that you have become used to doing something that is
bad, which is running windows programs in a cygwin shell.  Because
Perl exists in both places, you have intertwined yourself into a
complex situation of not knowing which scripts run in what
environment.  I don't think there's an easy fix for this.

I actually would recommend the opposite... since AS Perl is the native
Windows version, I recommend you use that instead of the cygwin
version for anything that interacts in a "windows way" (registry,
files, services, etc...).  For stuff that works only in cygwin, use
the cygwin perl.

Since you're at home on the command line, you might want to check out
"console" http://sourceforge.net/projects/console/ which offers a
marginal improvement over the windows command shell.

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