summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-06-22 12:26:53 +0200
committerJim Meyering <meyering@redhat.com>2008-06-22 12:27:49 +0200
commit574f7614039ce5b4c00808acc42d97856d4ff7d9 (patch)
treed19eb0c9bb6de043ddf1e11e6ae269bd162e1e8b /src/stat.c
parentc1aabf84e6493c09d30fb535485124e91fcc4109 (diff)
downloadcoreutils-574f7614039ce5b4c00808acc42d97856d4ff7d9.tar.xz
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.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/stat.c b/src/stat.c
index 0b07dab7f..0124c545e 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -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;