* NEWS: Mention the improvement.
* src/groups.c (main): Call fflush for each listed user to check for
write errors.
* tests/misc/io-errors.sh: Add an invocation of 'groups'.
** Improvements
+ 'groups' will now exit immediately upon receiving a write error, which is
+ significant when listing information for many users.
+
'nl' now supports multi-byte --section-delimiter characters.
'shuf -i' now operates up to two times faster on systems with unlocked stdio
if (!print_group_list (argv[optind], ruid, rgid, egid, true, ' '))
ok = false;
putchar ('\n');
+
+ if (fflush (stdout) < 0)
+ write_error ();
}
}
fold foo
fold -b foo
fold -c foo
+groups
head -n1 foo
join foo foo
nl foo