[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] grep-find quoting and nt emacs 21.1
From: |
Michael R. Wolf |
Subject: |
Re: [h-e-w] grep-find quoting and nt emacs 21.1 |
Date: |
03 Jan 2002 14:41:58 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
"Christine Burr" <address@hidden> writes:
> Yes, it's the cygwin find, not the windows version. This is sample
> output I've gotten in the *igrep* buffer:
>
> cd d:/users/cburr/work/BAPI/DLL/S70Server/
> find . -type d \( -name SCCS -o -name RCS \) -prune -o \( -type f -o
> -type l \) -name "*.h" -print0 | xargs -0 -e grep -n 'address'
> /dev/null
> /PROGRA~1/cygnus/cygwin-b20/H-i586-cygwin32/bin/bash.exe: -c: line 1:
> syntax error near unexpected token `\\('
> /PROGRA~1/cygnus/cygwin-b20/H-i586-cygwin32/bin/bash.exe: -c: line 1:
> `find . -type d \\( -name SCCS -o -name RCS \\) -prune -o \\( -type f -o
> -type l \\) -name "*.h" -print0 | xargs -0 -e grep -n 'address'
> /dev/null'
>
> igrep exited abnormally with code 2 at Thu Jan 03 13:41:57
Looks like good Korn shell syntax. Since I don't know bash,
I'm taking a SWAG. Try it without the \ in front of the (.
That's a short-term hack. Medium- to long-term, that
doesn't feel right to me. I think that parens are probably
a POSIX syntax for subshell execution, are therefore
metacharacters, and need to be escaped.
It may be the wrong thing to _do_, but it might be
instructive to _try_.
--
Michael R. Wolf
All mammals learn by playing!
address@hidden