[DGD] get_dir() oddity
bart at wotf.org
bart at wotf.org
Tue Dec 18 03:26:59 CET 2007
Duh, sorry for replying to my own message but..
Seems the pattern part of get_dir() can be a regular expression and reserves [
Guess I missed that somewhere.
Bart.
On Tue, 18 Dec 2007 03:05:29 +0100, bart wrote
> Somewhere on my filesystem there is a file /cmd/comm/[@.c
> Trying to do a compile_file() on it works fine, but a get_dir() somehow
> doesn't work as expected.
>
> ie get_dir("/cmd/comm/*") shows the file but
> get_dir("/cmd/comm/[@.c") returns an empty array. On any other file
> it returns the filename, size and time as array as expected.
>
> Something like get_dir("/cmd/comm/?@.c") also shows the file.
>
> That is the driver implementation of get_dir() btw.
>
> Any ideas why this is? Its specific to the [ in the name it seems.
>
> Bart.
> --
> Created with Open WebMail at http://www.bartsplace.net/
> Read my weblog at http://soapbox.bartsplace.net/
>
> ___________________________________________
> https://mail.dworkin.nl/mailman/listinfo/dgd
--
Created with Open WebMail at http://www.bartsplace.net/
Read my weblog at http://soapbox.bartsplace.net/
More information about the DGD
mailing list