public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Doug Wyatt" <dwyatt@sunflower.com>
To: "Al and Patricia" <carat@earthlink.net>, <cygwin@sourceware.cygnus.com>
Subject: Re: B.20.1 bash question - paths sent to #!
Date: Tue, 01 Feb 2000 21:52:00 -0000	[thread overview]
Message-ID: <200002020547.XAA14530@sunflower.com> (raw)
In-Reply-To: <001a01bf6cf8$f1db8d10$da610f0f@fc.hp.com>

Hi,

I believe I've seen some recent postings about converting pathname
formats - check the archives at < http://sourceware.cygnus.com/ml/cygwin/ >.

Quite some time back, I tried using the AS Perl with Cygwin but the final
straw was when I found that AS Perl didn't implement fork and exec.
I'd recommend trying the Cygwin port of Perl; it's fully compatible with
Cygwin and seems very stable.  Look to < http://cygutils.netpedia.net/ > if
you want to try it.

Regards,
Doug Wyatt

> Hello -
> 
> I looked in the archives and did not see a solution to this issue:
> 
> I have 3 drives on my NT 4.0 system: C: D: E:.
> I have a perl script that has "#!/usr/bin/perl" in it.
> I am trying to put the perl script in my path, so that I can run it from
> any drive.
> I am using ActiveState Perl.
> 
> Here is the situation.  First, my perl script is called "pop3", and it
> resides in /e/perl/bin.  If I put /e/perl/bin in my path, then I believe
> that bash calls /usr/bin/perl with the file name as /e/perl/bin/pop3.
> However, AS Perl can't interpret this file name and gives a "file not found"
> error.
> 
> I tried putting /perl/bin/ in my path, and this works, as long as I am "on"
> the e drive.  When I go to another drive, /perl/bin does not exist, and
> calling pop3 fails again.
> 
> So what I'd like is to have bash convert the Posix path of the called script
> to win32 when using the #! syntax, so that AS Perl (and other interpreters)
> will have a path it can work with.  Is there a workaround?
> 
> I hope this makes sense.  Let me know if can clarify.
> -----------------
> Al and Patricia
> 
> 
> 
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

  reply	other threads:[~2000-02-01 21:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-01 13:11 Al and Patricia
2000-02-01 21:52 ` Doug Wyatt [this message]
2000-02-02 13:22 ` Michael Hirmke
2000-02-02 14:14 ` Soren Andersen
2000-02-02  5:44 Earnie Boyd
2000-02-02  6:17 ` Ian Miller
2000-02-02  7:07 Earnie Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200002020547.XAA14530@sunflower.com \
    --to=dwyatt@sunflower.com \
    --cc=carat@earthlink.net \
    --cc=cygwin@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).