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


Groups > gnu.bash.bug > #15414 > unrolled thread

Re: Wrong command option in the manual examples

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2019-09-23 10:59 -0400
Last post2019-09-23 10:59 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Wrong command option in the manual examples Greg Wooledge <wooledg@eeg.ccf.org> - 2019-09-23 10:59 -0400

#15414 — Re: Wrong command option in the manual examples

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-09-23 10:59 -0400
SubjectRe: Wrong command option in the manual examples
Message-ID<mailman.883.1569250817.2190.bug-bash@gnu.org>
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 old way) is still supported for compat with old
> scripts, but is only mentioned in doc in the STANDARDS section, as:

But... there literally *is* a real standard for this.

<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html>

   -depth
      The primary shall always evaluate as true; it shall cause descent
      of the directory hierarchy to be done so that all entries in a
      directory are acted on before the directory itself. If a -depth
      primary is not specified, all entries in a directory shall be acted
      on after the directory itself. If any -depth primary is specified,
      it shall apply to the entire expression even if the -depth primary
      would not normally be evaluated.

If the POSIX standard isn't real enough, then I don't know what is.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web