Brian Ingerson [03/07/01 11:19 -0700]:
> Sam Tregar wrote:
> > 
> > On Tue, 3 Jul 2001, Neil Watkiss wrote:
> > 
> > > Should that be the default? Should the "current directory" (the actual source
> > > directory, not the build area) be added to the INC by default? Something like
> > > this:
> > 
> > Definitely.  C programmers will naturally expect the current directory to
> > be search for #include files.  It's either that or scan for "#include" and
> > do our own processing, but I think that's unnecessary.
> 
> OK. Sold. I'll put it in right away.

I'm not sure if we need to go this far, but is it worth checking whether the
script is actually in the current directory? Let me explain:

$ pwd
/home/nwatkiss/test
$ ls
some_path/
$ ls some_path
test.pl test.h
$ perl some_path/test.pl

I think this case is sufficiently rare that we needn't bother with it. But
it's worth noting that in this particular case '#include "test.h"' wouldn't
work.

Later,
Neil

Reply via email to