Created attachment 245092 [details] Diff for submited bug and new example In man 1 truncate in EXAMPLE section instead of "truncate -c -s +10M test_file" the command should be "truncate -c -s 10M test_file".
Created attachment 258011 [details] truncate.diff ^Triage: rebase patch.
Created attachment 258146 [details] refactored patch Hello, I re-did the patch. Now it addresses the following issues in the Examples section: - spells "Megabytes" as "megabytes" consistently - removes a stray * from the /boot/kernel/kernel listing - avoids using a shell prompt in the examples consistently - fixes the size parameter - adds an example how to increase the file size
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5460bdda9d4cb3ce1d7431824b6f53c545888b53 commit 5460bdda9d4cb3ce1d7431824b6f53c545888b53 Author: Maxim Konovalov <maxim@FreeBSD.org> AuthorDate: 2025-03-07 01:45:21 +0000 Commit: Maxim Konovalov <maxim@FreeBSD.org> CommitDate: 2025-03-07 01:45:21 +0000 truncate.1: improve the example section Notably: * spell "Megabytes" as "megabytes" consistently; * remove a stray asterisk from the /boot/kernel/kernel listing * avoid using a shell prompt in the examples consistently * fixes the size parameter * add an example how to increase the file size PR: 273997 MFC after: 1 week usr.bin/truncate/truncate.1 | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-)