delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/05/21:20:25

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <F614BF868E0DD411A5A700508B957E0038D074@MSGBOS679NTS.fmr.com>
From: "Tolkin, Steve" <Steve DOT Tolkin AT fmr DOT com>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Why can't I run perl scripts after cd to /_/d i.e. d:
Date: Wed, 5 Jul 2000 21:18:58 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

The following shows that when I am on d: I cannot run a perl script.  
I get the error message "No such file or directory".  It seems like it
cannot find the perl interpreter executable.
But running a similar bash script does work.
I changed the value of cygdrive to /_ at one point using mount, and it is
remembered in my registry with 
name: cygdrive prefix
data: "/_".  
Is this (part of) the problem.
I changed from /cygdrive because that was so tedious to type each time I
need to work on another hard disk.


1014/_/d/_mysetup> type bash
bash is /usr/bin/bash
1015/_/d/_mysetup> echo > /usr/home/mybin/testbash
1016/_/d/_mysetup> cat > /usr/home/mybin/testbash
#!/usr/bin/bash
echo hello from testbash
1017/_/d/_mysetup> /usr/home/mybin/testbash
hello from testbash
1018/_/d/_mysetup> cat > /usr/home/mybin/testperl
#!/usr/bin/perl
print "hello from testperl\n";
1019/_/d/_mysetup> /usr/home/mybin/testperl
Can't open perl script "/usr/home/mybin/testperl": No such file or directory
1020/_/d/_mysetup> ls -l /usr/bin/perl
-rwxr-xr-x   1 administ Administ    20480 Mar 24 11:37 /usr/bin/perl*
1021/_/d/_mysetup> ls -l /usr/bin/perl.exe
-rwxr-xr-x   1 administ Administ    20480 Mar 24 11:37 /usr/bin/perl.exe*
1022/_/d/_mysetup> ls -l /usr/bin/bash
-rwxr-xr-x   1 administ Administ   466944 Jun  1 18:50 /usr/bin/bash*
1023/_/d/_mysetup> ls -l /usr/bin/bash.exe
-rwxr-xr-x   1 administ Administ   466944 Jun  1 18:50 /usr/bin/bash.exe*
1024/_/d/_mysetup> mount
Device              Directory           Type         Flags
c:\bin              /usr/bin            user         binmode
c:\lib              /usr/lib            user         binmode
d:                  /d                  user         textmode
f:                  /f                  user         textmode
c:                  /                   user         binmode
e:                  /e                  user         textmode
1025/_/d/_mysetup> cd /
1026/> /usr/home/mybin/testperl
hello from testperl

Thanks,
Steve
-- 
Steven Tolkin          steve DOT tolkin AT fmr DOT com      617-563-0516 
Fidelity Investments   82 Devonshire St. R24D    Boston MA 02109
There is nothing so practical as a good theory.  Comments are by me, 
not Fidelity Investments, its subsidiaries or affiliates.

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