Re: [Module-build-general] Cross-platform fixes for pass-through Makefile
Status: Beta
Brought to you by:
kwilliams
From: Ken W. <ke...@ma...> - 2003-02-18 14:14:28
|
Hi James, Thanks for that analysis. So it doesn't look like a problem on Win32 - it should be noted, however, that this kind of situation could still (at least theoretically) cause problems on a Unix platform, but I think perhaps our efforts will be better directed elsewhere. -Ken On Monday, February 17, 2003, at 03:44 PM, James Freeman wrote: > Hi Ken, > > RE: X:\My Perl\bin\perl.exe > > The default install of perl from Active State is X:\Perl so you would > have > to actively change it to something that is basically totally broken > when you > do the install. I did a test install into d:\my perl\bin\perl.exe and > there > is no way with quoting or \ the space to get Perl to run on the command > line. Anyone who did this would be forced to change it immediately as > you > can't do anything with perl with it installed this way as you simply > can't > shell into the interpreter on the console which is ~99% of the Win32 > useage. > > I don't think this will be a real world problem. > > cheers > > James > > -----Original Message----- > From: Ken Williams [mailto:ke...@ma...] > Sent: 17 February 2003 21:20 > To: sc...@po... > Cc: Dave Rolsky; mod...@li...; James > Freeman > Subject: Re: [Module-build-general] Cross-platform fixes for > pass-through Makefile > > > > On Monday, February 17, 2003, at 01:17 PM, sc...@po... wrote: > >> On Mon, Feb 17, 2003 at 12:18:00PM -0600, Dave Rolsky wrote: >>>> $^X -e unlink -e shift $makefile >>> >>> unlink -e ??? >> >> He's avoiding using quotes. You're allowed to have multiple -e's on >> the >> command line. They'll be joined with a space and run as a single >> program. > > Right. So this is just a more cross-platform way to do > > $^X -e "unlink shift" $makefile > > The only part of it that's still an issue, I think, is the $^X > variable. It might contain something like "/My Computer/foo/bar/perl", > in which case I guess the shell invocation would think the command was > "/My" with argument "Computer/foo/bar/perl". > > -Ken > > > > -Ken |