Re: Wrong command option in the manual examples

2019-09-25 Thread Chet Ramey
On 9/25/19 2:11 PM, Ole Tange wrote: > I think you are right. The goal is to emulate 'ls'. > > As you can see from GNU Parallel's manual I would use printf instead: > > printf '%s\0' * | parallel -0 mv {} destdir This is the best option, with the usual caveat about having to change the patt

Re: Wrong command option in the manual examples

2019-09-25 Thread Ole Tange
On Mon, Sep 23, 2019 at 3:53 PM Chet Ramey wrote: > > On 9/23/19 5:29 AM, Ilkka Virta wrote: > > On 22.9. 21:15, Chet Ramey wrote: > >> On 9/20/19 10:24 PM, hk wrote: > >> > >>> Description: > >>> On the section 3.2.6(GNU Parallel, page 16 in the pdf) of Bash > >>> Reference Manual. The m

Re: Wrong command option in the manual examples

2019-09-23 Thread Robert Elz
Date:Mon, 23 Sep 2019 14:12:27 -0400 From:Chet Ramey Message-ID: <49989bf9-7c12-2670-de3f-20feead50...@case.edu> | It's in SVR2 (1984?), at least, Thanks. | The SVR2 page implies that it was added to support cpio. Yes .. the function of the option is fine - whe

Re: Wrong command option in the manual examples

2019-09-23 Thread Chet Ramey
On 9/23/19 1:24 PM, Robert Elz wrote: > Date:Mon, 23 Sep 2019 10:59:43 -0400 > From:Greg Wooledge > Message-ID: <20190923145943.gx28...@eeg.ccf.org> > > | But... there literally *is* a real standard for this. > > Hmm, yes, you're right. That suggests that -depth

Re: Wrong command option in the manual examples

2019-09-23 Thread Robert Elz
Date:Mon, 23 Sep 2019 10:59:43 -0400 From:Greg Wooledge Message-ID: <20190923145943.gx28...@eeg.ccf.org> | But... there literally *is* a real standard for this. Hmm, yes, you're right. That suggests that -depth must be a System-V invention (POSIX wouldn't have ad

Re: Wrong command option in the manual examples

2019-09-23 Thread Robert Elz
Date:Mon, 23 Sep 2019 16:36:59 +0200 From:Andreas Schwab Message-ID: | According to https://www.freebsd.org/cgi/man.cgi, find -d already | appeared in 4.3BSD, and -depth is much newer. I can believe that, I did not research the history, just what is in the NetBS

Re: Wrong command option in the manual examples

2019-09-23 Thread Greg Wooledge
On Mon, Sep 23, 2019 at 09:02:47PM +0700, Robert Elz wrote: > There is no real standard for this - NetBSD has deprecated the -depth > operator (which never really was one) and replaced it by a -d option > which makes much more sense (-depth never really was the right way to > do it). -depth (the o

Re: Wrong command option in the manual examples

2019-09-23 Thread Andreas Schwab
On Sep 23 2019, Robert Elz wrote: > Date:Mon, 23 Sep 2019 12:29:18 +0300 > From:Ilkka Virta > Message-ID: <59cf49b0-1292-b752-4fe8-8928fd558...@iki.fi> > > | (as well the standard '-depth', somewhat confusingly) > > There is no real standard for this - NetBSD has d

Re: Wrong command option in the manual examples

2019-09-23 Thread Robert Elz
Date:Mon, 23 Sep 2019 12:29:18 +0300 From:Ilkka Virta Message-ID: <59cf49b0-1292-b752-4fe8-8928fd558...@iki.fi> | (as well the standard '-depth', somewhat confusingly) There is no real standard for this - NetBSD has deprecated the -depth operator (which never reall

Re: Wrong command option in the manual examples

2019-09-23 Thread Chet Ramey
On 9/23/19 5:29 AM, Ilkka Virta wrote: > On 22.9. 21:15, Chet Ramey wrote: >> On 9/20/19 10:24 PM, hk wrote: >> >>> Bash Version: 5.0 >>> Patch Level: 0 >>> Release Status: release >>> >>> Description: >>> On the section 3.2.6(GNU Parallel, page 16 in the pdf) of Bash >>> Reference Manual.

Re: Wrong command option in the manual examples

2019-09-23 Thread Ilkka Virta
On 22.9. 21:15, Chet Ramey wrote: On 9/20/19 10:24 PM, hk wrote: Bash Version: 5.0 Patch Level: 0 Release Status: release Description: On the section 3.2.6(GNU Parallel, page 16 in the pdf) of Bash Reference Manual. The manual uses `find' command to illustrate possible use cases of `p

Re: Wrong command option in the manual examples

2019-09-22 Thread hk
GNU-implemented `find' does have a `-depth' option and a `-maxdepth' option. Directories[findutils] On Mon, Sep 23, 2019 at 2:15 AM Chet Ramey wrote: > On 9/20/19 10:24 PM, hk wrote: > > > Bash Vers

Re: Wrong command option in the manual examples

2019-09-22 Thread Chet Ramey
On 9/20/19 10:24 PM, hk wrote: > Bash Version: 5.0 > Patch Level: 0 > Release Status: release > > Description: > On the section 3.2.6(GNU Parallel, page 16 in the pdf) of Bash > Reference Manual. The manual uses `find' command to illustrate > possible use cases of `parallel' as examples.

Wrong command option in the manual examples

2019-09-20 Thread hk
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux hk 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Machine