Date: Thu, 04 Nov 2004 19:12:17 +0300 From: Denis Antrushin <DAntrushin@mail.ru> To: Claus Guttesen <cguttesen@yahoo.dk> Cc: freebsd-current@freebsd.org Subject: Re: find utility behaves different in 5.2 and 5.3 Message-ID: <418A54E1.1010905@mail.ru> In-Reply-To: <20041104155104.29925.qmail@web14127.mail.yahoo.com> References: <20041104155104.29925.qmail@web14127.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?418A54E1.1010905>