stat: warn that the --context (-Z) option (a no-op) is obsolete

* src/stat.c (main): It will be removed in a couple years.
* NEWS (Change in behavior): Mention this.
This commit is contained in:
Jim Meyering committed 2008-06-22 12:27:49 +02:00
1 parent c1aabf84e6
commit 574f761403
2 files changed
+13 -3

No files matched your search

+6
View File
@@ -46,6 +46,12 @@ GNU coreutils NEWS -*- outline -*-
specifiers, and no longer prints fields that resulted entirely from specifiers, and no longer prints fields that resulted entirely from
padding the input out to the least common multiple width. padding the input out to the least common multiple width.
** Changes in behavior
stat's --context (-Z) option has always been a no-op.
Now it evokes a warning that it is obsolete and will be removed.
* Noteworthy changes in release 6.12 (2008-05-31) [stable] * Noteworthy changes in release 6.12 (2008-05-31) [stable]
** Bug fixes ** Bug fixes
+7 -3
View File
@@ -1039,9 +1039,13 @@ main (int argc, char *argv[])
terse = true; terse = true;
break; break;
case 'Z': /* FIXME: remove in 2010, warn in mid 2008 */ case 'Z': /* FIXME: remove in 2010 */
/* Ignored, for compatibility with distributions /* Ignore, for compatibility with distributions
that implemented this before upstream. */ that implemented this before upstream.
But warn of impending removal. */
error (0, 0,
_("the --context (-Z) option is obsolete and will be removed\n"
"in a future release"));
break; break;
case_GETOPT_HELP_CHAR; case_GETOPT_HELP_CHAR;