From bc70095df2ea1bc4338ea7331d44b916e0c82258 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Sat, 22 Jun 2013 03:37:51 +0100 Subject: stdbuf: make it mandatory to specify a buffering option This is consistent with the documented interface and avoids any ambiguity in a user thinking that stdbuf without options might reset to a "standard" buffering setup. * src/stdbuf.c (set_libstdbuf_options): Indicate with the return value whether any env variables were actually set. (main): Fail unless some env variables were set. * tests/misc/stdbuf.sh: Ensure this constraint is enforced. * NEWS: Mention the small change in behavior. --- NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index aff6a4250..b728ec007 100644 --- a/NEWS +++ b/NEWS @@ -41,6 +41,11 @@ GNU coreutils NEWS -*- outline -*- csplit accepts a new option: --suppressed-matched, to elide the lines used to identify the split points. +** Changes in behavior + + stdbuf now requires at least one buffering mode option to be specified, + as per the documented interface. + ** Improvements stat and tail work better with EFIVARFS, EXOFS, F2FS, SNFS and UBIFS. -- cgit v1.2.3-70-g09d2