Mail Archives: cygwin/2000/02/02/10:01:47
--- Ian Miller <ian AT gingerspice DOT demon DOT co DOT uk> wrote:
-8<-
> I use Cygwin and Active State Perl but I never noticed this before, because
> I always run my scripts from the directory that they are in! However, one
> possible work around that I've just tried is to simply set up a shell script
> in your bin directory, which then calls Active State Perl with the correct
> DOS-style paths, e.g.
>
> --- file: /c/bin/myscript ---
>
> #!/usr/local/bin/tcsh -f
> #
> # I know this is a bad shell to use, but it's just an example! :)
> #
>
> perl c:\\src\\perl\\myscript.pl "$argv"
>
> --- end of file ---
--- file: c:\bin\stupid.script
#! c:/winnt/system32/cmd /c
#
# This is probably a worse example.
#
perl c:\src\perl\myscript.pl $@
# ^^ to be replaced with what DOS would expect
# which I haven't the slightest clue.
--- end of file ---
Note, I have a noop program named #.exe that is on the PATH that CMD uses.
--- File: noop.c
int main ( void ) { return 0; }
--- end of file ---
gcc -o #.exe noop.c
Regards,
=====
Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>
Cygwin Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -