find regular expression question

Volodymyr Kostyrko arcade at synergetica.dn.ua
Fri Sep 15 06:18:34 PDT 2006


   Just stumbled upon some inconsistences in find(1) regular expressions 
parsing:

[code]
 > :>a
 > find . -regex '^\./a\?$'
 > find . | grep '^\./a\?$'
./a
[/code]

   It seems that find just dumps away '?' operand. The same regexp 
perfectly works in grep.

   Is this a bug or feature? Am I missing something?

-- 
[WBR], Arcade.


More information about the freebsd-standards mailing list