]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
flock: make examples in man page more readable
authorKarel Zak <kzak@redhat.com>
Thu, 23 Jan 2020 14:43:23 +0000 (15:43 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Jan 2020 14:43:23 +0000 (15:43 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/flock.1

index 6762ecb4ce8982fc938ecd0c6f941624934bb6a2..a85862f46ec621e262b498243bc36ffdbafad9ca 100644 (file)
@@ -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.