[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Filename globbing



Tom Harrington <tph@shell.rmi.net> writes:
>>>     unlink("./foo/*");
>>
>>I must point out, first, that this construct is far from portable among
>>Unix boxes even. unlink() does not normally allow globbing (Nor should it,
>>IMHO).
>
>Interesting.  The script in question has (until now) only been used on
>SunOS Unix boxes.  

I failed to reproduce that here on a SunOS 4.1.4 machine. Are you sure it
was an unlink in the original and not something like `rm x/*` or
system "rm x/*" ?

>>>Given that installing csh is not really an option, how can
>>>I properly glob filenames in a folder whose name includes
>>>spaces?
>>
>>It might be possible for me to fix glob.
>
>It would seem that somebody will need to fix it, but I don't know if it's
>really your responsibility.

Too late. I already went ahead & did it.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "These days, though, you have to be pretty technical before you can 
    even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch