develooper Front page | perl.perl5.porters | Postings from September 2013

Re: [perl #119897] glob in threads is broken in perl5.18

Thread Previous | Thread Next
Ed Avis
September 24, 2013 12:27
Re: [perl #119897] glob in threads is broken in perl5.18
Message ID:
Craig A. Berry <craig.a.berry <at>> writes:

>On VMS, glob does not split its arguments on whitespace:

>I don't know when the split on whitespace feature was introduced but
>it was probably an oversight or lack of tuits that  kept it from
>getting added to the VMS implementation.

AFAIK, glob splitting on whitespace was an accident of its original
implementation (which worked by running an external tcsh) and was preserved
for compatibility when glob became implemented by Perl code.

Personally I'm not a fan of this behaviour - it tends to cause bugs when
file or directory names contain spaces, as is nowadays common on Windows and
Mac systems.  The fact that split-at-space has never happened on VMS might be
another argument towards deprecating it.

Ed Avis <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About