This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

backslashes stripped in perl


I am passing a parameter that contains backslashes in the path to a perl
script. 
I am calling the perl script from a makefile macro. The line in the makefile
is

target :
	$(PERL) myscript.pl $(ARG0) $(ARG1)

And in the perl script I have the lines 

$VARIABLE = @ARGV[0];
cmd "$VARIABLE -o $OPTION -c $PATH/path/config1 -batch";

When $(ARG0) is C:\path\executable.exe, I get the error 

C:pathexecutable.exe: not found

It is stripping the backslashes out. 
I know that it works with forward slashes, 
and I had similar problems with make before this 
(I found out how to set MAKE_MODE = win32).

I have to use backslashes in the path.
I didn't find anything when I searched for 
backslash perl
in the archives, and I didn't see an entry for perl
in the FSF online manuals.

I am using the NT4.0 SP5 cmd.exe as my shell. I get this failure
whether I explicitly set the SHELL environment variable or
not.

Thanks in advance for any help,  

Peter Buckley
C-Port Corporation, a Motorola Company
One High Street
No. Andover, MA 01845
978-773-2490




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]