diff options
author | Jim Meyering <jim@meyering.net> | 1993-05-02 21:35:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1993-05-02 21:35:51 +0000 |
commit | 93dcd189466cc1733b73467b707f7ee5478a621d (patch) | |
tree | 1988d3fc69b37efe0293251832fca2e197e0eb5d /src/ls.c | |
parent | a4bfda47ac05b6e00c09c59b6900cb49cac5849c (diff) | |
download | coreutils-93dcd189466cc1733b73467b707f7ee5478a621d.tar.xz |
merge with 3.5.1
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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': |