aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/file
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-12-12 14:46:55 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-12-12 14:46:55 +0000
commit65d9e0e0062d49c8029fbd865291bced37da204e (patch)
tree72e8d1bedc76462d76e375f24264f4eb2f3409b3 /usr.bin/file
parentb2c9c0dab279fa7ef3fa15d82f3e4b2398895397 (diff)
downloadsrc-65d9e0e0062d49c8029fbd865291bced37da204e.tar.gz
src-65d9e0e0062d49c8029fbd865291bced37da204e.zip
Remove hard-sentence breaks, canonify .Dd (no leading zero).
Notes
Notes: svn path=/head/; revision=69911
Diffstat (limited to 'usr.bin/file')
-rw-r--r--usr.bin/file/file.117
-rw-r--r--usr.bin/file/magic.58
2 files changed, 15 insertions, 10 deletions
diff --git a/usr.bin/file/file.1 b/usr.bin/file/file.1
index 16154fe1cf2b..99d6211769f8 100644
--- a/usr.bin/file/file.1
+++ b/usr.bin/file/file.1
@@ -1,5 +1,5 @@
.\" $FreeBSD$
-.Dd December 08, 2000
+.Dd December 8, 2000
.Dt FILE 1 "Copyright but distributable"
.Os
.Sh NAME
@@ -167,7 +167,7 @@ Either
.Ar namefile
or at least one filename argument must be present;
to test the standard input, use
-.Dq -
+.Dq Ar -
as a filename argument.
.It Fl i
Causes the file command to output mime type strings rather than the
@@ -180,7 +180,8 @@ In order for this option to work, file changes the way it handles
files recognised by the command itself (such as many of the text
file types, directories etc), and makes use of an alternative
.Dq Pa magic
-file. (See
+file.
+(See
.Sx FILES
section, below).
.It Fl k
@@ -201,7 +202,8 @@ the type of argument files which
.Xr stat 2
reports are ordinary files.
This prevents problems, because reading special files
-may have peculiar consequences. Specifying the
+may have peculiar consequences.
+Specifying the
.Fl s
option causes file to also read argument files which
are block or character special files.
@@ -238,7 +240,6 @@ can be used to set the default magic number files.
.Xr od 1 ,
.Xr strings 1 ,
.Xr magic 5
-
.Sh STANDARDS CONFORMANCE
This program is believed to exceed the System V Interface Definition
of FILE(CMD), as near as one can determine from the vague language
@@ -419,7 +420,8 @@ There should be an
clause to follow a series of continuation lines.
.Pp
The magic file and keywords should have regular expression
-support. Their use of ASCII TAB as a field delimiter is
+support.
+Their use of ASCII TAB as a field delimiter is
ugly and makes it hard to edit the files, but is
entrenched.
.Pp
@@ -443,7 +445,8 @@ This could be done by using some keyword like
Another optimisation would be to sort the magic file so
that we can just run down all the tests for the first
byte, first word, first long, etc, once we have fetched
-it. Complain about conflicts in the magic file entries.
+it.
+Complain about conflicts in the magic file entries.
Make a rule that the magic entries sort based on file offset
rather than position within the magic file?
.Pp
diff --git a/usr.bin/file/magic.5 b/usr.bin/file/magic.5
index 3b88eac42bfa..cf6b02ed0993 100644
--- a/usr.bin/file/magic.5
+++ b/usr.bin/file/magic.5
@@ -3,7 +3,7 @@
.\"
.\" install as magic.4 on USG, magic.5 on V7 or Berkeley systems.
.\"
-.Dd December 08, 2000
+.Dd December 8, 2000
.Dt MAGIC 5 "Public Domain"
.Os
.Sh NAME
@@ -13,7 +13,8 @@
This manual page documents the format of the magic file as
used by the
.Nm
-command, version 3.33. The
+command, version 3.33.
+The
.Nm file
command identifies the type of a file using,
among other tests,
@@ -48,7 +49,8 @@ A four-byte value (on most systems) in this machine's native byte order.
.It string
A string of bytes.
The string type specification can be optionally followed
-by /[Bbc]*. The
+by /[Bbc]*.
+The
.Dq B
flag compacts whitespace in the target, which must contain
at least one whitespace character.