Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2021 11:08:00 GMT
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 12615938c6e0 - main - timeout.1: Fix typos in examples
Message-ID:  <202110211108.19LB80ed092724@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp (doc, ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=12615938c6e0bc3ca7604a8b0614ff23d9964370

commit 12615938c6e0bc3ca7604a8b0614ff23d9964370
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2021-10-21 11:06:45 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2021-10-21 11:07:32 +0000

    timeout.1: Fix typos in examples
    
    MFC after:      3 days
---
 usr.bin/timeout/timeout.1 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/usr.bin/timeout/timeout.1 b/usr.bin/timeout/timeout.1
index 87a86c81e6ee..27f022c48636 100644
--- a/usr.bin/timeout/timeout.1
+++ b/usr.bin/timeout/timeout.1
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 20, 2021
+.Dd October 21, 2021
 .Dt TIMEOUT 1
 .Os
 .Sh NAME
@@ -161,7 +161,7 @@ $ echo $?
 .Pp
 Same as above but preserving status.
 Exit status is 128 + signal number (15 for
-.Va SIGTERM )
+.Va SIGTERM ) :
 .Bd -literal -offset indent
 $ timeout --preserve-status 2 sleep 4
 $ echo $?
@@ -171,7 +171,7 @@ $ echo $?
 Same as above but sending
 .Va SIGALRM
 (signal number 14) instead of
-.Va SIGTERM
+.Va SIGTERM :
 .Bd -literal -offset indent
 $ timeout --preserve-status -s SIGALRM 2 sleep 4
 $ echo $?
@@ -189,8 +189,8 @@ signal after 1 minute and send a
 .Va SIGKILL
 signal 5 seconds later if the process refuses to stop:
 .Bd -literal -offset indent
-timeout -k 5s 1m fetch \\
-https://download.freebsd.org/ftp/doc/en/books/handbook/book.pdf
+$ timeout -k 5s 1m fetch \\
+> https://download.freebsd.org/ftp/doc/en/books/handbook/book.pdf
 .Ed
 .Sh SEE ALSO
 .Xr kill 1 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110211108.19LB80ed092724>