This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: other/1528: perl path in contrib/texi2pod.pl
- To: nobody at gcc dot gnu dot org
- Subject: Re: other/1528: perl path in contrib/texi2pod.pl
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: 31 Dec 2000 06:36:01 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Phil Edwards <pedwards at disaster dot jaj dot com>
The following reply was made to PR other/1528; it has been noted by GNATS.
From: Phil Edwards <pedwards@disaster.jaj.com>
To: igor@txc.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: other/1528: perl path in contrib/texi2pod.pl
Date: Sun, 31 Dec 2000 01:37:13 -0500
On Sun, Dec 31, 2000 at 06:12:04AM -0000, igor@txc.com wrote:
> >Description:
> contrib/texi2pod.pl assumes that the default location in perl is /usr/bin/perl, which is not the case on Solaris.
It is now:
9% type perl
perl is /usr/bin/perl
10% ./config.guess
sparc-sun-solaris2.8
11%
Still, it wasn't always, and the assumption that perl is /usr/bin/perl is
not a good one.
> >Fix:
> abandon #! construction altogether for this file, assuming perl is always in user's path.
Or replace it with
#!/usr/bin/env perl
which will also Do The Right Thing when perl is in the the path.
Phil
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.