summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-05-02 21:35:51 +0000
committerJim Meyering <jim@meyering.net>1993-05-02 21:35:51 +0000
commit93dcd189466cc1733b73467b707f7ee5478a621d (patch)
tree1988d3fc69b37efe0293251832fca2e197e0eb5d /src/ls.c
parenta4bfda47ac05b6e00c09c59b6900cb49cac5849c (diff)
downloadcoreutils-93dcd189466cc1733b73467b707f7ee5478a621d.tar.xz
merge with 3.5.1
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ls.c b/src/ls.c
index 2926eafac..f50b4efe6 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -214,7 +214,7 @@ enum time_type
static enum time_type time_type;
-/* print the full time, -f, otherwise the standard unix heuristics. */
+/* print the full time, otherwise the standard unix heuristics. */
int full_time;
@@ -367,7 +367,7 @@ static struct option const long_options[] =
{"all", no_argument, 0, 'a'},
{"escape", no_argument, 0, 'b'},
{"directory", no_argument, 0, 'd'},
- {"full-time", no_argument, 0, 'f'},
+ {"full-time", no_argument, &full_time, 1},
{"inode", no_argument, 0, 'i'},
{"kilobytes", no_argument, 0, 'k'},
{"numeric-uid-gid", no_argument, 0, 'n'},
@@ -605,7 +605,14 @@ decode_switches (argc, argv)
break;
case 'f':
- full_time = 1;
+ /* Same as enabling -a -U and disabling -l -s. */
+ all_files = 1;
+ really_all_files = 1;
+ sort_type = sort_none;
+ /* disable -l */
+ if (format == long_format)
+ format = (isatty (1) ? many_per_line : one_per_line);
+ print_block_size = 0; /* disable -s */
break;
case 'g':