On Tue, Sep 24, 2013 at 1:36 PM, Eric Brine <ikegami@adaelis.com> wrote: > On Tue, Sep 24, 2013 at 9:32 AM, Brian Fraser <fraserbn@gmail.com> wrote: > >> Honestly that seems more useful than splitting on whitespace. Windows >> uses (and users use) spaces in filenames all the time, and whenever I do >> any sort of collab with a non-programmer those inevitably creep in. >> > > Wouldn't be a big issue if you could escape the space, but you can't. > Gotta use bsd_glob instead. > > >perl -E"say for glob 'c:\\program files\\*'" > c:\program > > >perl -E"say for glob 'c:\\program\ files\\*'" > > >perl -MFile::Glob=bsd_glob -E"say for bsd_glob 'c:\\program files\\*'" | > find "Common" > c:\program files\Common Files > > Let me rephrase that. You can't *on Windows*. There's no problem escaping spaces on unix systems. $ perl -E'say for glob "a\ b/*"' aThread Previous | Thread Next