Re: Problem with glob and filenames containing '[' and ']'



anno4000@xxxxxxxxxxxxxxxxxxxxxx wrote:
David Squire <David.Squire@xxxxxxxxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:
Hi folks,

I'm having trouble using glob to find filenames that contain '[' and
']', even though I am escaping those meta-characters. Here is an example
script and output:

I don't know what goes wrong for you. It works for me as expected
(after replacing /damocles/documents/ENH1260/2006/2/Short assignment/
with something that exists on my box).

Thanks. Would you be able to try my second, simpler, example too? That
seems to narrow down the oddness.


DS
.



Relevant Pages

  • Re: Problem with glob and filenames containing [ and ]
    ... I'm having trouble using glob to find filenames that contain '[' and ... even though I am escaping those meta-characters. ... treating it as multiple patterns, ...
    (comp.lang.perl.misc)
  • Re: Problem with glob and filenames containing [ and ]
    ... I'm having trouble using glob to find filenames that contain '[' and ... even though I am escaping those meta-characters. ... I think that's going to confuse glob big-time. ...
    (comp.lang.perl.misc)
  • Re: For Loops and Space in Names
    ... Spaces don't belong in filenames and they make ... I'm going to include a script I wrote a long ... | One lesson I learned writing this was to use lot's of double quotes. ... Default is to recite commands and a -x option would make ...
    (Fedora)
  • Re: Exiting os.spawnvs subroutine
    ... Main script: ... # Define arguments for subprocess ... filenames = os.listdir ... print "Successfully contoured at 100 meter interval!" ...
    (comp.lang.python)
  • Re: Iterations
    ... > My users tend to invite a lot of spyware. ... > large portions of a script for each file. ... instead of running this code at each individual workstation that you ... >> filenames so much as specific files, as you are looking only in the root ...
    (microsoft.public.windows.server.scripting)