From 8778bcc15da077f783262750fb96b23959be3f85 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 9 Feb 2005 19:07:30 +0000 Subject: [PATCH] Document $HOME/.magic --- doc/file.man | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/file.man b/doc/file.man index f13ed8e3..22fd61ad 100644 --- a/doc/file.man +++ b/doc/file.man @@ -1,5 +1,5 @@ .TH FILE __CSECTION__ "Copyright but distributable" -.\" $Id: file.man,v 1.54 2003/10/27 18:09:08 christos Exp $ +.\" $Id: file.man,v 1.55 2005/02/09 19:07:30 christos Exp $ .SH NAME file \- determine file type @@ -103,7 +103,13 @@ magic file .I __MAGIC__.mgc , or .I __MAGIC__ -if the compile file does not exist. +if the compile file does not exist. In addition +.B file +will look in +.I $HOME/.magic.mgc , +or +.I $HOME/.magic +for magic entries. .PP If a file does not match any of the entries in the magic file, it is examined to see if it seems to be a text file. @@ -281,6 +287,10 @@ Local additions to magic wisdom. The environment variable .B MAGIC can be used to set the default magic number file name. +If that variable is set, then +.B file +will not attempt to open +.B $HOME/.magic . .B file adds ".mime" and/or ".mgc" to the value of this variable as appropriate. .SH SEE ALSO -- 2.40.0