diff options
| author | Christos Zoulas <christos@zoulas.com> | 2005-02-09 19:07:30 +0000 |
|---|---|---|
| committer | Christos Zoulas <christos@zoulas.com> | 2005-02-09 19:07:30 +0000 |
| commit | 8778bcc15da077f783262750fb96b23959be3f85 (patch) | |
| tree | f0dd268658261db9408c9be27dd7282f010fceb3 /doc | |
| parent | 2b7b4f28801fcf0eb7fe1a43eea5bee667429543 (diff) | |
| download | file-git-8778bcc15da077f783262750fb96b23959be3f85.tar.gz | |
Document $HOME/.magic
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/file.man | 14 |
1 files 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 |
