why sub processes not working in tcsh

Why does
vi `grep -il create \`find . -type f\` `
not work under tcsh, returns
Code:
Unmatched `.
Its ok in the other shells.
 
Code:
vi $( grep -il create `find . -type f` )
Illegal variable name.
fairs no better, why should it, they are equivalent.
 
IIRC, (t)csh doesn't support more than one level of command substitution. However, you can always convert such expressions to use xargs.
$ vi `grep -il create \`find . -type f\` `
becomes
$ find . -type f | xargs grep -il create | xargs -o vi
 
Back
Top