Re: Bug or changed behaviour in GNU find?

2012-11-27 Thread Andreas Metzler
On 2012-11-27 Marcel Loose wrote: [...] > $ find . -name "*.h" -o -name "*.cc" -o -name "*.tcc" > ./foo.h > ./foo.cc > ./foo.tcc > $ find . -name "*.h" -o -name "*.cc" -o -name "*.tcc" -print0 | tr '\0' '\n' > ./foo.tcc > IIRC this used to work with older version of find. Has something changed >

Re: Bug or changed behaviour in GNU find?

2012-11-27 Thread James Youngman
On Tue, Nov 27, 2012 at 3:14 PM, Marcel Loose wrote: > Hi, > > I recently stumbled upon something that IMHO is a bug in recent versions > of GNU find. See the following example below to see what I mean: > > $ ls > foo.cc foo.h foo.tcc > > $ find --version > find (GNU findutils) 4.4.2 > Copyright

Re: Bug or changed behaviour in GNU find?

2012-11-27 Thread Eric Blake
> $ find . -name "*.h" -o -name "*.cc" -o -name "*.tcc" This is equivalent to: find . \( -name "*.h" -o -name "*.cc" -o -name "*.tcc" \) -print > ./foo.h > ./foo.cc > ./foo.tcc > > $ find . -name "*.h" -o -name "*.cc" -o -name "*.tcc" -print0 | tr > '\0' '\n' This is equivalent to: find . -n

Bug or changed behaviour in GNU find?

2012-11-27 Thread Marcel Loose
Hi, I recently stumbled upon something that IMHO is a bug in recent versions of GNU find. See the following example below to see what I mean: $ ls foo.cc foo.h foo.tcc $ find --version find (GNU findutils) 4.4.2 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version