From fb1d8b3724cde10863de04d2c0884fbc5035eeef Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 2 Jul 2004 22:22:35 +0000 Subject: Mechanically kill hard sentence breaks. --- usr.bin/file/file.1 | 4 +++- usr.bin/file/magic.5 | 23 +++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) (limited to 'usr.bin/file') diff --git a/usr.bin/file/file.1 b/usr.bin/file/file.1 index cc9c041..69af027 100644 --- a/usr.bin/file/file.1 +++ b/usr.bin/file/file.1 @@ -424,7 +424,9 @@ directory (source for the file) is too long to include here. You know who you are; thank you. .Sh LEGAL NOTICE -Copyright (c) Ian F. Darwin, Toronto, Canada, 1986-1999. +Copyright (c) +.An Ian F. Darwin , +Toronto, Canada, 1986-1999. Covered by the standard Berkeley Software Distribution copyright; see the file .Pa LEGAL.NOTICE in the source distribution. diff --git a/usr.bin/file/magic.5 b/usr.bin/file/magic.5 index 35d904b..f1c7124 100644 --- a/usr.bin/file/magic.5 +++ b/usr.bin/file/magic.5 @@ -105,15 +105,17 @@ The numeric types may optionally be followed by .Em & and a numeric value, to specify that the value is to be AND'ed with the -numeric value before any comparisons are done. Prepending a +numeric value before any comparisons are done. +Prepending a .Em u to the type indicates that ordered comparisons should be unsigned. .Bl -tag -width indent .It test -The value to be compared with the value from the file. If the type is +The value to be compared with the value from the file. +If the type is numeric, this value is specified in C form; if it is a string, it is specified as a C string -with the usual escapes permitted (e.g. \en for new-line). +with the usual escapes permitted (e.g.\& \en for new-line). .It "" Numeric values may be preceded by a character indicating the operation to be performed. @@ -157,12 +159,14 @@ and .Em & ) can be applied to strings. The length used for matching is that of the string argument -in the magic file. This means that a line can match any string, and +in the magic file. +This means that a line can match any string, and then presumably print that string, by doing .Em >\e0 (because all strings are greater than the null string). .It message -The message to be printed if the comparison succeeds. If the string +The message to be printed if the comparison succeeds. +If the string contains a .Xr printf 3 format specification, the value from the file (with any specified masking @@ -170,9 +174,11 @@ performed) is printed using the message as the format string. .El .Pp Some file formats contain additional information which is to be printed -along with the file type. A line which begins with the character +along with the file type. +A line which begins with the character .Em > -indicates additional tests and messages to be printed. The number of +indicates additional tests and messages to be printed. +The number of .Em > on the line indicates the level of the test; a line with no .Em > @@ -186,7 +192,8 @@ If the test on a line at level .Em n succeeds, the tests specified in all the subsequent lines at level .Em n+1 -are performed, and the messages printed if the tests succeed. The next +are performed, and the messages printed if the tests succeed. +The next line at level .Em n terminates this. -- cgit v1.1