httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: cvs commit: httpd-apreq-2/glue/perl/t/response/TestApReq inherit.pm request.pm
Date Mon, 16 Jun 2003 02:13:42 GMT
Joe Schaefer wrote:
> Stas Bekman <stas@stason.org> writes:
> 
> 
>>joes@apache.org wrote:
>>
>>>joes        2003/06/13 02:46:52
>>>  Modified:    glue/perl/t TEST.PL
>>>               glue/perl/t/apreq big_input.t cookie.t inherit.t request.t
>>>               glue/perl/t/response/TestApReq inherit.pm request.pm
>>
>>>  Index: request.t
>>>  ===================================================================
>>>  RCS file: /home/cvs/httpd-apreq-2/glue/perl/t/apreq/request.t,v
>>>  retrieving revision 1.1
>>>  retrieving revision 1.2
>>>  diff -u -r1.1 -r1.2
>>>  --- request.t	9 Jun 2003 06:30:04 -0000	1.1
>>>  +++ request.t	13 Jun 2003 09:46:52 -0000	1.2
>>>  @@ -1,3 +1,4 @@
>>>  +#!/usr/bin/perl
>>
>>May I ask, why this path is hardcoded? 
> 
> 
> It serves no practical purpose other than to inform emacs of the 
> file type (as well as being conventional for perl scripts).  The 
> tests (.t files) aren't ever directly executed by a shell, so the 
> actual path isn't important.

You don't need to change the file for that, I have this rule in .xemacs/init.el:

(setq auto-mode-alist
       (append '(("\\.\\([pP][Llm]\\|al\\|cgi\\|pod\\|t\\)$" . perl-mode)) 
auto-mode-alist ))
(setq interpreter-mode-alist (append interpreter-mode-alist
                                       '(("miniperl" . perl-mode))))

oh, I see David has already posted a similar one.

>>This is certainly a bite for problems, when people have several perl
>>installs and they build with non-/usr/bin/perl but get to test with
>>it.
> 
> 
> Nah, it won't cause any problems; the tests are always run with 
> $^X, not #!.

Not to you. But users may try to run these as is, without using $^X. I've 
pointed it out for this reason, just trying to minimize support pains.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message