Re: [perl #75388] Possible typos in Perl's 5.12.1 Policy_sh.SH
[email protected] ("H.Merijn Brand")
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 8 Jun 2010 09:10:28 -0400 (EDT), Andy Dougherty <[email protected]> wrote: > On Thu, 27 May 2010, Stoned Elipot wrote: > > > Perl's 5.12.1 Policy_sh.SH script handles a bunch of > > configuration variables related to installation directories. > > > > A foor loop is used to go through them. > > > > The loop's words list reads: > > ... html3dir ... siteman1dir siteman3dir sitehtml1dir sitehtml3dir ... > > vendorman1dir vendorman3dir vendorhtml1dir vendorhtml3dir > > > > But the loop's body seems to be handling, kindof respectively: > > > > htm31dir siteman1 siteman3 sitehtml1 sitehtm31dir vendorman1 vendorman3 > > vendorhtml1 vendorhtm3 > > > > Also the body seems to be handling man1ext and man3ext which are > > not in the loop's words list. > > > > AFAICT pastos and typos could explain these discrepancies. > > [That, and historical confusion over what names to use.] Thanks, applied as c1bd236350b343c4ef921b81c45eabb4ecc82569 > Thanks for catching this. The following patch (also attached for > redundancy) ought to fix it. > > This patch fixes several long-standing typos and naming confusions in > Policy_sh.SH, standardizing on the variable names used in config.sh. > This will change the behavior of Policy.sh if you happen to have been > accidentally relying on the Policy.sh incorrect behavior. I'd appreciate > feedback from anyone using Policy.sh to be sure nothing is broken by > this change. Thanks to Stoned Elipot for pointing this out. > --- > Policy_sh.SH | 21 +++++++++++---------- > 1 files changed, 11 insertions(+), 10 deletions(-) > > diff --git a/Policy_sh.SH b/Policy_sh.SH > index a618d23..cc310dd 100644 > --- a/Policy_sh.SH > +++ b/Policy_sh.SH > @@ -130,7 +130,8 @@ esac > # $vendorman1dir $vendorman3dir $vendorhtml1dir $vendorhtml3dir > > for var in \ > - bin scriptdir privlib archlib man1dir man3dir html1dir html3dir \ > + bin scriptdir privlib archlib man1dir man3dir man1ext man3ext \ > + html1dir html3dir \ > sitebin sitescript sitelib sitearch \ > siteman1dir siteman3dir sitehtml1dir sitehtml3dir \ > vendorbin vendorscript vendorlib vendorarch \ > @@ -165,7 +166,7 @@ do > > # We don't know what to do with these yet. > html1dir) dflt='' ;; > - htm31dir) dflt='' ;; > + html3dir) dflt='' ;; > > # Directories for site-specific add-on files > sitebin) dflt=$siteprefix/bin ;; > @@ -184,11 +185,11 @@ do > ;; > sitearch) dflt="$sitelib/$archname" ;; > > - siteman1) dflt="$siteprefix/man/man1" ;; > - siteman3) dflt="$siteprefix/man/man3" ;; > + siteman1dir) dflt="$siteprefix/man/man1" ;; > + siteman3dir) dflt="$siteprefix/man/man3" ;; > # We don't know what to do with these yet. > - sitehtml1) dflt='' ;; > - sitehtm31dir) dflt='' ;; > + sitehtml1dir) dflt='' ;; > + sitehtml3dir) dflt='' ;; > > # Directories for vendor-supplied add-on files > # These are all usually empty. > @@ -213,11 +214,11 @@ do > ;; > vendorarch) dflt="$vendorlib/$archname" ;; > > - vendorman1) dflt="$vendorprefix/man/man1" ;; > - vendorman3) dflt="$vendorprefix/man/man3" ;; > + vendorman1dir) dflt="$vendorprefix/man/man1" ;; > + vendorman3dir) dflt="$vendorprefix/man/man3" ;; > # We don't know what to do with these yet. > - vendorhtml1) dflt='' ;; > - vendorhtm3) dflt='' ;; > + vendorhtml1dir) dflt='' ;; > + vendorhtml3dir) dflt='' ;; > > esac # End of vendorprefix != '' > fi -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using 5.00307 through 5.12 and porting perl5.13.x on HP-UX 10.20, 11.00, 11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3. http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/