Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Robert Elz Newsgroups: gnu.bash.bug Subject: Re: Wrong command option in the manual examples Date: Tue, 24 Sep 2019 00:03:30 +0700 Lines: 29 Approved: bug-bash@gnu.org Message-ID: References: <59cf49b0-1292-b752-4fe8-8928fd558ebf@iki.fi> <38052651-6d67-6107-660c-707ca39ee00c@case.edu> <23726.1569247367@jinx.noi.kre.to> <27659.1569258210@jinx.noi.kre.to> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1569258289 1034 209.51.188.17 (23 Sep 2019 17:04:49 GMT) X-Complaints-To: action@cs.stanford.edu Cc: Ilkka Virta , hk , bug-bash@gnu.org, chet.ramey@case.edu To: Andreas Schwab Envelope-to: bug-bash@gnu.org In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:3c8:9009:181::2 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <27659.1569258210@jinx.noi.kre.to> X-Mailman-Original-References: <59cf49b0-1292-b752-4fe8-8928fd558ebf@iki.fi> <38052651-6d67-6107-660c-707ca39ee00c@case.edu> <23726.1569247367@jinx.noi.kre.to> Xref: csiph.com gnu.bash.bug:15415 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 NetBSD man page (and code). It looks as if both -d and -depth appeared in 4.3Reno, with -depth undocumented other than as an implementation technique for -d (which is kind of a weird way to do it) and much the same explanation of why -depth is wrong as appears in BSD man pages to this day... That kind of suggests that -depth (the no arg version) was older, and originated elsewhere (none of this is in 4.3Tahoe) but that isn't clear. If I ever find my BSD sccs files I might (if I still remember this) take a look and see if there are more clues to the origins. (-xdev, which was replaced/augmented by -x in 4.3Reno was certainly older). FreeBSD's -depth N is certainly newer. None of this affects my opinion that using -depth (any form) in an example isn't a good choice. kre