add ability to read files from user supplied file, avoids need for
shell_slice_* type things on slow file systems