Re: find -exec util {} arg + confusion

2020-11-21 Thread Todd C . Miller
On Sat, 21 Nov 2020 17:02:05 +0100, Alexander Hall wrote: > So this is it. Any other objections? OK? OK millert@ - todd

Re: find -exec util {} arg + confusion

2020-11-21 Thread Alexander Hall
On Tue, Nov 17, 2020 at 01:11:42PM +0100, Paul de Weerd wrote: > On Tue, Nov 17, 2020 at 01:06:05AM +0100, Alexander Hall wrote: ... > | The more I read and think about it, I feel the original error message is > | actually correct in that there is no terminating ";" or "+", since the > |

Re: find -exec util {} arg + confusion

2020-11-20 Thread Andreas Kusalananda Kähäri
On Mon, Nov 16, 2020 at 09:15:11AM +0100, Paul de Weerd wrote: > Hi Andreas, > > On Mon, Nov 16, 2020 at 08:53:36AM +0100, Andreas Kusalananda Kähäri wrote: > | On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: > | > Hi all, > | > > | > I misread find(1) and did: > | > > | >

Re: find -exec util {} arg + confusion

2020-11-20 Thread Andreas Kusalananda Kähäri
On Thu, Nov 19, 2020 at 03:26:28PM -0800, Jordan Geoghegan wrote: > > > On 11/16/20 12:15 AM, Paul de Weerd wrote: > > Hi Andreas, > > > > On Mon, Nov 16, 2020 at 08:53:36AM +0100, Andreas Kusalananda Kähäri wrote: > > | On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: > > | > Hi

Re: find -exec util {} arg + confusion

2020-11-19 Thread Jordan Geoghegan
On 11/16/20 12:15 AM, Paul de Weerd wrote: Hi Andreas, On Mon, Nov 16, 2020 at 08:53:36AM +0100, Andreas Kusalananda Kähäri wrote: | On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: | > Hi all, | > | > I misread find(1) and did: | > | > [weerdpom] $ find path/to/cam -name

Re: find -exec util {} arg + confusion

2020-11-19 Thread Alexander Hall
On November 17, 2020 1:11:42 PM GMT+01:00, Paul de Weerd wrote: >On Tue, Nov 17, 2020 at 01:06:05AM +0100, Alexander Hall wrote: >| On Mon, Nov 16, 2020 at 09:04:53AM +0100, Paul de Weerd wrote: >| > Hi Alexander, >| > >| > On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: >| >

Re: find -exec util {} arg + confusion

2020-11-17 Thread Paul de Weerd
On Tue, Nov 17, 2020 at 01:06:05AM +0100, Alexander Hall wrote: | On Mon, Nov 16, 2020 at 09:04:53AM +0100, Paul de Weerd wrote: | > Hi Alexander, | > | > On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: | > | I googled for "POSIX find", and hit this: | > | | > |

Re: find -exec util {} arg + confusion

2020-11-16 Thread Alexander Hall
On Mon, Nov 16, 2020 at 09:04:53AM +0100, Paul de Weerd wrote: > Hi Alexander, > > On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: > | I googled for "POSIX find", and hit this: > | > | https://pubs.opengroup.org/onlinepubs/009695399/utilities/find.html > | > | => "Only a plus

Re: find -exec util {} arg + confusion

2020-11-16 Thread Paul de Weerd
Hi Andreas, On Mon, Nov 16, 2020 at 08:53:36AM +0100, Andreas Kusalananda Kähäri wrote: | On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: | > Hi all, | > | > I misread find(1) and did: | > | > [weerdpom] $ find path/to/cam -name \*.JPG -exec cp {} path/to/store + | > find: -exec

Re: find -exec util {} arg + confusion

2020-11-16 Thread Paul de Weerd
Hi Alexander, On Sun, Nov 15, 2020 at 10:22:32PM +0100, Alexander Hall wrote: | I googled for "POSIX find", and hit this: | | https://pubs.opengroup.org/onlinepubs/009695399/utilities/find.html | | => "Only a plus sign that follows an argument containing the two | characters "{}" shall

Re: find -exec util {} arg + confusion

2020-11-15 Thread Andreas Kusalananda Kähäri
On Thu, Nov 12, 2020 at 08:51:22PM +0100, Paul de Weerd wrote: > Hi all, > > I misread find(1) and did: > > [weerdpom] $ find path/to/cam -name \*.JPG -exec cp {} path/to/store + > find: -exec no terminating ";" or "+" Not really what you're asking for, but... What you seem to want to do can

Re: find -exec util {} arg + confusion

2020-11-15 Thread Alexander Hall
On Sun, Nov 15, 2020 at 07:19:07PM +0100, Paul de Weerd wrote: > Hi all, > > It was pointed out to me off-list that I introduced a regression for > the case that has '+' as one of its arguments, e.g.: > > [weerd@pom] $ find /var/empty -exec echo + {} + > find: -exec: "+" should

Re: find -exec util {} arg + confusion

2020-11-15 Thread Paul de Weerd
Hi all, It was pointed out to me off-list that I introduced a regression for the case that has '+' as one of its arguments, e.g.: [weerd@pom] $ find /var/empty -exec echo + {} + find: -exec: "+" should follow {} Updated diff fixes that case: [weerd@pom]

find -exec util {} arg + confusion

2020-11-12 Thread Paul de Weerd
Hi all, I misread find(1) and did: [weerdpom] $ find path/to/cam -name \*.JPG -exec cp {} path/to/store + find: -exec no terminating ";" or "+" That was somewhat surprising - there is a terminating "+". The error really is that the "+" doesn't follow immediately after the "{}" (which the