The read -rn 8 command doesn't seem to cope with small files, and
does all kinds of strange things when I try running it manually on
latest macOS to test, including:
not reading anything at all from files with short first lines
reading too much from files with long first lines (more than 8 chars)
Overall the head -c8 approach used everywhere else to do this work
is probably safer, and should work with small files as well.
See #116
The
read -rn 8
command doesn't seem to cope with small files, and does all kinds of strange things when I try running it manually on latest macOS to test, including:Overall the
head -c8
approach used everywhere else to do this work is probably safer, and should work with small files as well.