Quote:
Originally Posted by
shishong
It's 64-bit. When I use input redirect ( < ) on a smaller test file, I get no ouput.
yes... 'look' doesn't do quite what I thought it did. When you give it no input file it tries to use something in /usr/share/dict!
So no, redirection won't work in this case.
Annoying that your version of
look can't support large files on a 64-bit system! This may be a bug.
---------- Post updated at 01:53 PM ---------- Previous update was at 01:46 PM ----------
Looking at the code it doesn't have an explicit built-in limit, it just uses mmap. When I have access to a 64-bit machine later today I'll see what mmap does on 64-bit systems for enormous files.