Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15404

Re: Wrong command option in the manual examples

From hk <hkadeveloper@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Wrong command option in the manual examples
Date 2019-09-23 07:26 +0800
Message-ID <mailman.823.1569194812.2190.bug-bash@gnu.org> (permalink)
References <CAD0rTC6EHd5w5A6kuD850mLzu+V_EJXQyoZ=amQcF9TktTSEJA@mail.gmail.com> <38052651-6d67-6107-660c-707ca39ee00c@case.edu> <CAD0rTC5Q82sk_s6cS0RXc6pupe_vo9A3n-xAW8NwE9ejysEQ4g@mail.gmail.com>

Show all headers | View raw


GNU-implemented `find' does have a `-depth' option and  a `-maxdepth'
option.
Directories[findutils]
<https://www.gnu.org/software/findutils/manual/html_node/find_html/Directories.html#Directories>

On Mon, Sep 23, 2019 at 2:15 AM Chet Ramey <chet.ramey@case.edu> 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 `parallel' as examples. but the option `-depth'
> > does not accept any argument, I think it means `-maxdepth` option
> > instead.
>
> -depth n
>       True if the depth of the file relative to the starting point of
>       the traversal is n.
>
> It's not in POSIX, and maybe GNU find doesn't implement it.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/
>

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Wrong command option in the manual examples hk <hkadeveloper@gmail.com> - 2019-09-23 07:26 +0800

csiph-web