summaryrefslogtreecommitdiff
path: root/src/stat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-30 22:31:43 +0000
committerJim Meyering <jim@meyering.net>2004-06-30 22:31:43 +0000
commit851acad0ceb9813dbad3831a0cc7e2cc7eb08994 (patch)
tree6a06a3d83736fb4cf8d603cf9565153e5060356d /src/stat.c
parent3365c5f5e3ba02bf6f7afa7bb4424a1ddc4a31d9 (diff)
downloadcoreutils-851acad0ceb9813dbad3831a0cc7e2cc7eb08994.tar.xz
(usage, main): Output "file system" rather than "filesystem".
(long_options, usage): Rename "--filesystem" to "--file-system". But keep the old name around, for compatibility reasons.
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/stat.c b/src/stat.c
index 5f6d95b63..ae69337ca 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1,4 +1,4 @@
-/* stat.c -- display file or filesystem status
+/* stat.c -- display file or file system status
Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation.
This program is free software; you can redistribute it and/or modify
@@ -93,8 +93,9 @@
static struct option const long_options[] = {
{"link", no_argument, 0, 'l'}, /* deprecated. FIXME: remove in 2003 */
{"dereference", no_argument, 0, 'L'},
+ {"file-system", no_argument, 0, 'f'},
+ {"filesystem", no_argument, 0, 'f'}, /* obsolete and undocumented alias */
{"format", required_argument, 0, 'c'},
- {"filesystem", no_argument, 0, 'f'},
{"terse", no_argument, 0, 't'},
{GETOPT_HELP_OPTION_DECL},
{GETOPT_VERSION_OPTION_DECL},
@@ -612,7 +613,7 @@ print_it (char const *masterformat, char const *filename,
free (dest);
}
-/* stat the filesystem and print what we find */
+/* Stat the file system and print what we find. */
static void
do_statfs (char const *filename, int terse, char const *format)
{
@@ -699,9 +700,9 @@ usage (int status)
{
printf (_("Usage: %s [OPTION] FILE...\n"), program_name);
fputs (_("\
-Display file or filesystem status.\n\
+Display file or file system status.\n\
\n\
- -f, --filesystem display filesystem status instead of file status\n\
+ -f, --file-system display file system status instead of file status\n\
-c --format=FORMAT use the specified FORMAT instead of the default\n\
-L, --dereference follow links\n\
-t, --terse print the information in terse form\n\
@@ -710,7 +711,7 @@ Display file or filesystem status.\n\
fputs (VERSION_OPTION_DESCRIPTION, stdout);
fputs (_("\n\
-The valid format sequences for files (without --filesystem):\n\
+The valid format sequences for files (without --file-system):\n\
\n\
%A Access rights in human readable form\n\
%a Access rights in octal\n\