bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: M-x grep not prepared for file names with spaces in them


From: Richard Stallman
Subject: Re: M-x grep not prepared for file names with spaces in them
Date: Fri, 29 Dec 2000 20:20:08 -0700 (MST)

    (setq grep-regexp-alist
    ;  '(("\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)))
       '(("\\([a-zA-Z]?:?[^:(\t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)))
    I took out the space here^  as seen on constant width char terminals

    "Works great!"

If a number of people try it, and report there's no problem, then it
would be good to install the change.

    Back in '92 I really understood regular expressions, but
    now in '00 I'm like, sorry, what's "[a-zA-Z]?" going to match that
    "[^:( \t\n]+" or "[^:(\t\n]+" won't?

The [a-zA-Z]? is to match the device name on MS-DOG.
[^:( \t\n]+ rejects colons, so it won't match a:foo.bar.

    > By the way, I don't think that the hooking up of PPP is done in Linux,
    > the kernel.  You're probably talking about the larger GNU/Linux

    Relax, it wasn't me, it was the grep output; but hey, if the pros call
    it "GNU/Linux", count me in.

Thank you.  I thought you might have written the files you were
grepping through--if it wasn't you, perhaps you can pass the word to
see http://www.gnu.org/gnu/linux-and-gnu.html.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]