Page MenuHomeFreeBSD

fetch.1: Add example for stdout
Needs ReviewPublic

Authored by polarian_polarian.dev on Jul 27 2026, 7:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 4, 12:20 PM
Unknown Object (File)
Wed, Sep 2, 1:30 PM
Unknown Object (File)
Tue, Sep 1, 6:27 PM
Unknown Object (File)
Thu, Aug 27, 2:35 AM
Unknown Object (File)
Mon, Aug 24, 9:59 PM
Unknown Object (File)
Sun, Aug 23, 5:57 PM
Unknown Object (File)
Thu, Aug 13, 11:19 PM
Unknown Object (File)
Tue, Aug 11, 10:11 AM
Subscribers

Details

Reviewers
None
Group Reviewers
docs
Summary

Very small patch, however a while ago I was playing with fetch and I wanted to output to stdout, and for whatever reason I couldn't get it to work. Today I embarrassed myself as someone pointed out the obvious answer.

The man page already contains a line under the -o option specifying "-" can be used to output to stdout, however there is no example of it. I feel like an example could help idiot-proof the man page for people like me :p

Honestly, I didn't know what to use as an example, so I followed the rest of the examples fetching the README from FreeBSD, and then searching for references to "ports", should be a good enough example to be adapted for anyone using fetch(1) in a script?

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

usr.bin/fetch/fetch.1
55

This might help too

79
426

What do you think of this?