From owner-freebsd-current@FreeBSD.ORG Thu Nov 4 16:11:32 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BC1A16A4CF for ; Thu, 4 Nov 2004 16:11:32 +0000 (GMT) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE0B743D60 for ; Thu, 4 Nov 2004 16:11:31 +0000 (GMT) (envelope-from DAntrushin@mail.ru) Received: from [81.3.158.67] (port=63299 helo=[129.159.124.237]) by mx1.mail.ru with esmtp id 1CPkCw-0005Pq-00; Thu, 04 Nov 2004 19:11:30 +0300 Message-ID: <418A54E1.1010905@mail.ru> Date: Thu, 04 Nov 2004 19:12:17 +0300 From: Denis Antrushin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a2) Gecko/20040812 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Claus Guttesen References: <20041104155104.29925.qmail@web14127.mail.yahoo.com> In-Reply-To: <20041104155104.29925.qmail@web14127.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected cc: freebsd-current@freebsd.org Subject: Re: find utility behaves different in 5.2 and 5.3 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2004 16:11:32 -0000 Claus Guttesen wrote: > Hi. > > On 5.3 I can execute the following line in zsh: > > odin~%>find . -type d \! -name autoedit -depth 1 > ./172 > > On a 5.2 I get: > > cyclop~%>find . -type d \! -name autoedit -depth 1 > find: 1: unknown option I don't know about version of find in 5.3, but for find in 5.2, -depth option has no arguments. From man: -depth Always true; same as the -d option. -depth can be useful when find is used with cpio(1) to process files that are contained in directories with unusual permissions. It ensures that you have write permission while you are placing files in a directory, then sets the directory's permissions as the last thing. > > According to 'man 1 find' (examples) I should be able > to use \! -name on 5.2. \! -name is OK > > Zsh 4.2.0 on both machines. > > Claus