From owner-freebsd-standards@FreeBSD.ORG Fri Sep 15 13:18:34 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0612816A403 for ; Fri, 15 Sep 2006 13:18:34 +0000 (UTC) (envelope-from arcade@synergetica.dn.ua) Received: from nora.synergetica.dn.ua (synergetica.dn.ua [82.207.115.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E23443D6E for ; Fri, 15 Sep 2006 13:18:28 +0000 (GMT) (envelope-from arcade@synergetica.dn.ua) Received: from [172.30.0.159] (yarn.lan [172.30.0.159]) (authenticated bits=0) by nora.synergetica.dn.ua (8.13.8/8.13.8) with ESMTP id k8FDIPFc008222 for ; Fri, 15 Sep 2006 16:18:26 +0300 (EEST) (envelope-from arcade@synergetica.dn.ua) Message-ID: <450AA821.9050000@synergetica.dn.ua> Date: Fri, 15 Sep 2006 16:18:25 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.8.0.6) Gecko/20060804 SeaMonkey/1.0.4 MIME-Version: 1.0 To: freebsd-standards@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: find regular expression question X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Sep 2006 13:18:34 -0000 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.