From 5db212c033855cdd1e46eacb44e830504dde885e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 Jan 2020 15:43:23 +0100 Subject: [PATCH] flock: make examples in man page more readable Signed-off-by: Karel Zak --- sys-utils/flock.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys-utils/flock.1 b/sys-utils/flock.1 index 6762ecb4ce..a85862f46e 100644 --- a/sys-utils/flock.1 +++ b/sys-utils/flock.1 @@ -125,6 +125,7 @@ Display version information and exit. .BR \-h , " \-\-help" Display help text and exit. .SH EXAMPLES +Note that "shell> " in examples is a command line prompt. .TP shell1> flock /tmp \-c cat .TQ @@ -168,9 +169,9 @@ itself as the lock file) before re-execing itself with the right arguments. It also sets the FLOCKER env var to the right value so it doesn't run again. .TP .TQ -exec 4<>/var/lock/mylockfile +shell> exec 4<>/var/lock/mylockfile .TQ -flock -n 4 +shell> flock -n 4 This form is convenient for locking a file without spawning a subprocess. The shell opens the lock file for reading and writing as file descriptor 4, then flock is used to lock the descriptor. -- 2.47.3