Mailing List Archive

Possible install bug on cp lines
I've noticed that the Perl 5.001m installation tends to do things like:

cp less.pm /usr/local/lib/perl5//less.pm
chmod 444 /usr/local/lib/perl5/less.pm
cp lib.pm /usr/local/lib/perl5//lib.pm
chmod 444 /usr/local/lib/perl5/lib.pm
cp perl5db.pl /usr/local/lib/perl5//perl5db.pl
chmod 444 /usr/local/lib/perl5/perl5db.pl
unlink /usr/local/lib/perl5/pwd.pl
cp pwd.pl /usr/local/lib/perl5//pwd.pl
chmod 444 /usr/local/lib/perl5/pwd.pl

Note the doubled slash in the 'cp' lines. Is this an optical illusion,
known bug, or expected?

--
jared@organic.com / Organic Online / <URL:http://www.hmc.edu/~jared/home>

"A great many people think they are thinking when they are merely
rearranging their prejudices." -- William James
Re: Possible install bug on cp lines [ In reply to ]
On Sat, 26 Aug 1995, Jared Rhine wrote:

> I've noticed that the Perl 5.001m installation tends to do things like:
>
> cp less.pm /usr/local/lib/perl5//less.pm
> chmod 444 /usr/local/lib/perl5/less.pm
> cp lib.pm /usr/local/lib/perl5//lib.pm
> chmod 444 /usr/local/lib/perl5/lib.pm
> cp perl5db.pl /usr/local/lib/perl5//perl5db.pl
> chmod 444 /usr/local/lib/perl5/perl5db.pl
> unlink /usr/local/lib/perl5/pwd.pl
> cp pwd.pl /usr/local/lib/perl5//pwd.pl
> chmod 444 /usr/local/lib/perl5/pwd.pl
>
> Note the doubled slash in the 'cp' lines. Is this an optical illusion,
> known bug, or expected?

I've never noticed it, but it may do it. In any case, on just about any
OS, doubled separates are ignored and treated as one. This behaviour is
practically universal.

> --
> jared@organic.com / Organic Online / <URL:http://www.hmc.edu/~jared/home>
>
> "A great many people think they are thinking when they are merely
> rearranging their prejudices." -- William James
>

--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)
Re: Possible install bug on cp lines [ In reply to ]
In message <Pine.LNX.3.91.950827135305.422B-100000@kjahds.com>, Kenneth Albanow
ski writes:
>I've never noticed it, [...]

After patch1l I posted:

+ Thanks for all the work, Andy.
+
+ I noticed when I ran "make install" that some of the "cp" commands
+ looked like
+
+ cp validate.pl [...]/lib/perl5//validate.pl
+
+
+ Patch.1i introduced the following line (330) into installperl
+
+ cp_if_diff("$_", "$installlib/$dir/$_");
+
+ If $dir is empty we get the double "/". Shouldn't this be
+
+ cp_if_diff("$_", "$installlib/$name");
+
+ after all that's what we're going to chmod() a few lines later.
+
+ Tom would probably question the quotes around $_ as well :-)

but it didn't seem to make it into 1m.

Andrew
--
ajv@comp.vuw.ac.nz
Re: Possible install bug on cp lines [ In reply to ]
[Citation date: Sun, 27 Aug 1995 13:53:46 -0400 (EDT)]
KA == Kenneth Albanowski <kjahds@kjahds.com>

JR> I've noticed that the Perl 5.001m installation tends to do things like:
JR>
JR> cp less.pm /usr/local/lib/perl5//less.pm
JR>
JR> Note the doubled slash in the 'cp' lines. Is this an optical illusion,
JR> known bug, or expected?

KA> I've never noticed it, but it may do it. In any case, on just about
KA> any OS, doubled separates are ignored and treated as one. This
KA> behaviour is practically universal.

Oh, sure; it works fine, which is why it's likely no one's ever reported
it. Consider it an 'aesthetic' bug report.

--
jared@organic.com / Organic Online / <URL:http://www.hmc.edu/~jared/home>

"There is more to life than increasing its speed." - Mohandas K. Gandhi