1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

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
2008-06-22 12:26:53 +02:00
parent c1aabf84e6
commit 574f761403
2 changed files with 13 additions and 3 deletions

View File

@@ -1039,9 +1039,13 @@ main (int argc, char *argv[])
terse = true;
break;
case 'Z': /* FIXME: remove in 2010, warn in mid 2008 */
/* Ignored, for compatibility with distributions
that implemented this before upstream. */
case 'Z': /* FIXME: remove in 2010 */
/* Ignore, for compatibility with distributions
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;
case_GETOPT_HELP_CHAR;