summaryrefslogtreecommitdiffstats
path: root/usr.bin/file
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-12-12 14:46:55 +0000
committerru <ru@FreeBSD.org>2000-12-12 14:46:55 +0000
commita703a8478665496db20170e78b8f7b1b43e69a86 (patch)
treed7654b6fcf5885a20f9853f57cf31c25e3721e48 /usr.bin/file
parent9af9c9fb32a329e98a319b3365a140ca76e9da01 (diff)
downloadFreeBSD-src-a703a8478665496db20170e78b8f7b1b43e69a86.zip
FreeBSD-src-a703a8478665496db20170e78b8f7b1b43e69a86.tar.gz
Remove hard-sentence breaks, canonify .Dd (no leading zero).
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 16154fe..99d6211 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 3b88eac..cf6b02e 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.
OpenPOWER on IntegriCloud