mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-03 19:12:42 +03:00
(main): Issue a warning for obsolete usage, unless POSIXLY_CORRECT.
This commit is contained in:
@@ -443,7 +443,13 @@ main (int argc, char **argv)
|
||||
&& optarg[0] == '+'
|
||||
&& xstrtoul (optarg, NULL, 10, &size, "") == LONGINT_OK
|
||||
&& size <= SIZE_MAX)
|
||||
skip_chars = size;
|
||||
{
|
||||
if (! posixly_correct)
|
||||
error (0, 0,
|
||||
_("warning: `uniq %s' is obsolete; use `uniq -s %s' instead"),
|
||||
optarg, optarg + 1);
|
||||
skip_chars = size;
|
||||
}
|
||||
else if (nfiles == 2)
|
||||
{
|
||||
error (0, 0, _("extra operand `%s'"), optarg);
|
||||
|
||||
Reference in New Issue
Block a user