summaryrefslogtreecommitdiffstats
path: root/misc-utils/look.1
diff options
context:
space:
mode:
authorSami Kerola2017-08-12 10:31:11 +0200
committerKarel Zak2017-08-21 10:48:20 +0200
commita653878c45cd533abbd4950b2fb5ea8c6cef6395 (patch)
tree5f9efd80bcb90a9beb471c4aa7400e1c86bfe4ad /misc-utils/look.1
parentlslogins: be more explicit with -g in man page (diff)
downloadkernel-qcow2-util-linux-a653878c45cd533abbd4950b2fb5ea8c6cef6395.tar.gz
kernel-qcow2-util-linux-a653878c45cd533abbd4950b2fb5ea8c6cef6395.tar.xz
kernel-qcow2-util-linux-a653878c45cd533abbd4950b2fb5ea8c6cef6395.zip
look: use WORDLIST environment variable to find word list
The WORDLIST is the same hunspell(1) and ispell(1) uses to achieve the same. Apparently aspell(1) does not work with files like traditional dict lists. Reference: https://github.com/hunspell/hunspell/blob/master/man/hunspell.1#L388 Reference: http://www.skrenta.com/rt/man/ispell.1.html Reference: http://aspell.net/man-html/Creating-an-Individual-Word-List.html#Creating-an-Individual-Word-List Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/look.1')
-rw-r--r--misc-utils/look.15
1 files changed, 5 insertions, 0 deletions
diff --git a/misc-utils/look.1 b/misc-utils/look.1
index 503e38584..cca83416e 100644
--- a/misc-utils/look.1
+++ b/misc-utils/look.1
@@ -101,6 +101,11 @@ sort -d /etc/passwd -o /tmp/look.dict
look -t: root:foobar /tmp/look.dict
.nf
.RE
+.SH ENVIRONMENT
+.TP
+.B WORDLIST
+Path to a dictionary file. The environment variable has greater priority
+than the dictionary path defined in FILES segment.
.SH FILES
.IP "\fB/usr/share/dict/words\fR" 4
the dictionary