On 24.09.2013 14:27, Ed Avis wrote: > > 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. Yes, please! You can easily get the old behavior of glob "foo bar" with glob("foo"), glob("bar"). -- Lukas Mai <plokinom@gmail.com>Thread Previous | Thread Next