Similar to the tail -n0 patch recently sent to the list,
this adjusts shuf so that it never reads input with -n0.
Now unlike tail -n0 which is useful with -f, shuf -n0
isn't needed, as it always truncates --output if specified,
and doesn't produce anything.
I don't think we should disallow -n0 tho
* src/shuf.c (main): If -n0 specified then no data would ever be output,
so exit without reading input.
* tests/misc/shuf.sh: Augment the related test with this case.
---
src/shuf.c |6 --
tests/misc/shuf.sh |6 ++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --g
After a "git clean -xdf" (followed by "./bootstrap" && "./configure",
of course), "make check" fails for the gnulib-tests, because the
directory "intl" does not exist:
make[3]: Entering directory `/media/sdb5/berny/git/coreutils/gnulib-tests'
CC localename.o
cc1: error: ../intl: No s