Page MenuHomeFreeBSD

du: Print progress information to stderr
ClosedPublic

Authored by des on Fri, Aug 7, 3:33 PM.
Tags
None
Referenced Files
F170096132: D58702.id.diff
Thu, Sep 3, 12:12 PM
F170020284: D58702.diff
Thu, Sep 3, 6:43 AM
Unknown Object (File)
Wed, Sep 2, 12:06 PM
Unknown Object (File)
Tue, Sep 1, 8:55 PM
Unknown Object (File)
Tue, Sep 1, 12:09 PM
Unknown Object (File)
Tue, Sep 1, 9:24 AM
Unknown Object (File)
Tue, Sep 1, 7:02 AM
Unknown Object (File)
Sun, Aug 30, 12:54 PM
Subscribers

Details

Summary
  • On SIGINFO, print the current path to stderr rather than stdout.
  • Do so immediately, instead of the next time we finish a directory.
  • Document this behavior in the manual page.

PR: 296861
MFC after: 1 week
Fixes: d1588599c024 ("Report the next directory being scanned ...")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Fri, Aug 7, 3:33 PM

I haven't tested, but the code change looks good to me. I think the bit added to the manual page should be in a DIAGNOSTICS section, if you believe mdoc(7). (POSIX has a separate SIGNALS section but mdoc(7) doesn't suggest one.) I don't insist on this, though.

This revision is now accepted and ready to land.Fri, Aug 7, 3:43 PM

I think the bit added to the manual page should be in a DIAGNOSTICS section, if you believe mdoc(7).

I copied it from cp(1). Other manual pages including dd(1) and wc(1) have the same verbiage in roughly the same location.

In D58702#1346997, @des wrote:

I think the bit added to the manual page should be in a DIAGNOSTICS section, if you believe mdoc(7).

I copied it from cp(1). Other manual pages including dd(1) and wc(1) have the same verbiage in roughly the same location.

No change requested, however I believe DIAGNOSTICS is correct for all of these. mdoc(7) is the reference manual, the sections are real standards, and organization is good.

No change requested, however I believe DIAGNOSTICS is correct for all of these. mdoc(7) is the reference manual, the sections are real standards, and organization is good.

Well mdoc(7) says DIAGNOSTICS is for documenting error messages, which this isn't.

This revision was automatically updated to reflect the committed changes.