[GRASS5] g.html2man: perl location problem
Markus Neteler
neteler at geog.uni-hannover.de
Fri Mar 2 04:38:25 EST 2001
On Fri, Mar 02, 2001 at 11:12:55AM +0700, Justin Hickey wrote:
> Hi Markus
>
> Markus Neteler wrote:
> > > Yes, perl has a similar method. The following is from the
> > > "Programming Perl" book:
> > >
> > > #!/bin/sh -- #perl, to stop looping
> > > eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
> > > if 0;
> > >
> > > .. rest of perl script ...
> > >
> Simply call
> g.html2man with sh. That is:
>
> sh g.html2man.
>
> This should work, at least my test cases worked here on both Linux and
> SGI.
Yes, now it's o.k.
> > And also not the -S:
> >
> > export GRASS_PERL=/usr/bin/perl
> > g.html2man
> > /bin/sh: -S: unrecognized option
> > Shall I simply remove these flags?
>
> The -S option is an option to perl, not sh, so please do not remove it.
Accepted now :-)
Final question: How can we set
GRASS_PERL (from src/CMD/head/head.$ARCH)? I just get no idea,
Yours
Markus
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list