Re: [OCLUG-Tech] Odd behaviour in find

2015-11-27 Thread Joe Burpee
On Wed, Nov 25, 2015 at 16:52:11 -0500, Alex Pilon wrote: > -find = subprocess.Popen(['find', '--'] + args.args, > stdout=subprocess.PIPE) > +find_args = ['-xdev'] if args.X else [] > +find = subprocess.Popen(['find'] + find_args + ['--'] + > args.args, >

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-26 Thread Peter Sjöberg
On 11/25/2015 03:58 PM, Alex Pilon wrote: On 15-11-25 01:39 PM, Alex Pilon wrote: > Is it just me or should this work? >> > On Wed, Nov 25, 2015 at 03:45:38PM -0500, Peter Sjöberg wrote: >> It's just you who skipped reading the man page > > No. I did read the man page. It's not doing

[OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Alex Pilon
Is it just me or should this work? $ find -xdev -- foo find: unknown predicate `--' $ But not this? $ find -- foo -xdev -name 'sadasdasdasd' $ ___ Linux mailing list Linux@lists.oclug.on.ca http://oclug.on.ca/mailman/listinfo/linux

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Bill Strosberg
On 15-11-25 01:39 PM, Alex Pilon wrote: > Is it just me or should this work? > > $ find -xdev -- foo > find: unknown predicate `--' > $ > > But not this? > > $ find -- foo -xdev -name 'sadasdasdasd' > $ > ___ > Linux mailing list >

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Alex Pilon
> This is all documented in the manual. I know; see other subthread. What's odd is that `find -xdev -- foo` doesn't work, yet `find -- foo` does. I expected -- to be properly interpreted as the end of options indicator, as per the manual. ___ Linux

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Joe Burpee
On Wed, Nov 25, 2015 at 14:21:55 -0500, Alex Pilon wrote: > > On 15-11-25 01:39 PM, Alex Pilon wrote: > > > Is it just me or should this work? > > > > > > $ find -xdev -- foo > > > find: unknown predicate `--' > > > $ man find "This manual page talks about `options' within the

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Stephen M. Webb
On 15-11-25 02:21 PM, Alex Pilon wrote: >> On 15-11-25 01:39 PM, Alex Pilon wrote: >>> Is it just me or should this work? >>> >>> $ find -xdev -- foo >>> find: unknown predicate `--' >>> $ >>> >>> But not this? >>> >>> $ find -- foo -xdev -name 'sadasdasdasd' >>> $ >> > On Wed,

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Peter Sjöberg
On 11/25/2015 02:21 PM, Alex Pilon wrote: >> On 15-11-25 01:39 PM, Alex Pilon wrote: >>> Is it just me or should this work? It's just you who skipped reading the man page find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression] note that we have some options before "path" and

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Alex Pilon
On Wed, Nov 25, 2015 at 01:39:56PM -0500, Alex Pilon wrote: > Is it just me or should this work? > > $ find -xdev -- foo > find: unknown predicate `--' > $ > > But not this? > > $ find -- foo -xdev -name 'sadasdasdasd' > $ Beg your pardon, Some context I forgot to mention.

Re: [OCLUG-Tech] Odd behaviour in find

2015-11-25 Thread Stephen M. Webb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 15-11-25 04:00 PM, Alex Pilon wrote: >> This is all documented in the manual. > > I know; see other subthread. What's odd is that `find -xdev -- foo` doesn't > work, yet `find -- foo` does. I > expected -- to be properly interpreted as the end