Re: [OT] -print argument to find (was [PATCH for 2.4] fix find to not stumble over BK)

jlnance@intrex.net
Wed, 17 Jul 2002 11:41:10 -0400


On Tue, Jul 16, 2002 at 07:05:35PM -0700, Chris Wedgwood wrote:
> On Wed, Jul 17, 2002 at 02:40:33AM +0100, Alan Cox wrote:
>
> The -print is not needed. See IEEE Std 1003.1-2001
>
> If no expression is present, -print shall be used as the
> expression.
>
> [...]
>
> Interesting...
>
>
> That said, I do out of habit as Solaris did/does require print and so
> does some other commercial OS (I forget which now).

Oh, its even more interesting. If the -print is not present find prints
out the name of the pruned directories. If it is present it does not:

vmware> find . -name tmpdir -prune -o -type d
.
./tmpdir
./output
vmware> find . -name tmpdir -prune -o -type d -print
.
./output

Jim
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/