summaryrefslogtreecommitdiff
path: root/src/ls.c
AgeCommit message (Collapse)Author
1997-10-07update bug-reporting addressJim Meyering
1997-09-14(struct col_info) [valid_len]: Rename from `valid' which conflictedJim Meyering
with the macro in locale.h of SunOS4.1.4.
1997-09-14(print_horizontal): Add some non-essential curly braces.Jim Meyering
1997-09-14(print_many_per_line): Add some non-essential curly braces.Jim Meyering
1997-09-02[!STDC_HEADERS]: Declare malloc.Jim Meyering
1997-07-06Add new option: --sort=version (-v).Jim Meyering
1997-07-06(print_long_format): Reflect changes in semantics of getuser, getgroup.Jim Meyering
1997-06-22Use variable width columns when printing in multi-column mode.Jim Meyering
(init_col_info): New function. (print_current_files): Call init_col_info if format is `many_per_line' or `horizontal'. (print_many_per_line): Calculate optimum column widths. (print_horizontal): Likewise. From Ulrich Drepper.
1997-05-25declare strip_trailing_slashesJim Meyering
1997-05-25(convert_blocks): Add definition.Jim Meyering
1997-03-10(decode_switches): Ignore value of COLUMNS envionmentJim Meyering
variable when it is the empty string. Suggestion from Ulrich Drepper.
1997-02-20(main): Remove trailing slashes from command line arguments.Jim Meyering
Otherwise, running `mkdir x; chmod 644 x; ls -d x/' (note the trailing slash) makes ls fail with permission denied on at least Linux 1.2.13 and 2.0.14 systems.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-06(quote_filename): Allocate two more bytes (for quotes)Jim Meyering
when using --quote-name (-Q). Feb 2 change wasn't complete. Patch from Mark Harris.
1997-02-03(quote_filename): Don't backslash-escape double quotes.Jim Meyering
This fixes a problem whereby columns weren't aligned when some files contained double quote characters and ls's --escape (-b) option was used. Reported by Mark Harris.
1997-02-02[obstack_chunk_alloc]: Define to malloc, not xmallocJim Meyering
to work better with new obstack functions.
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1997-01-28(print_long_format): Fix off-by-one problem in size being passed to strftime.Jim Meyering
1997-01-26Restore dcl of free. with obstacks, you need it.Jim Meyering
1997-01-15[!STDC_HEADERS]: Remove unnecessary declaration of free.Jim Meyering
1997-01-09(print_long_format): Cast alloca return value to char*.Jim Meyering
1997-01-05(print_long_format): Detect and handle strftime failureJim Meyering
due to pathologically long strings in locale tables. Patch from Paul Eggert. (print_long_format): Change references to BIGBUF in use of FPUT macro to references to BUF. Use 11 (not 20) bytes for mode string buffer.
1997-01-05(print_long_format): NUL-terminate line of output.Jim Meyering
1997-01-05(print_long_format): First patch from Paul Eggert.Jim Meyering
1997-01-05(print_long_format): Clean up vestiges of legacyJim Meyering
ctime-oriented code. With internationalization and strftime, you can't presume that %a expands to a 3-byte string. Reported by Ross Ridge.
1996-12-29Two problems fixed by these changes from Joakim Rosqvist.Jim Meyering
Quoting Joakim: 1) The "total" number and the size of the first file as output from 'ls --color -s' did not get colorized according to the "no"-argument in LS_COLORS. Fixed by adding a function prep_non_filename_text which prints the C_LEFT C_NORM C_RIGHT strings (or C_END). It is called from main before any text is output, and from print_name_with_quoting after having output a colorized filename. 2) If the "no"-argument of LS_COLORS is set, the terminal will be set to print in that color after ls exits. The man-pages suggests setting "no" and "fi" to the terminals default colors to avoid the problem, but that would mean I can't use anything but the default color for regular files and non-filename text. Fixed by outputting C_LEFT immediately followed by C_RIGHT right before exit, which restores the default color.
1996-12-28Correct obsolete comment referring to macro that is now ls_mode.Jim Meyering
1996-12-19(gobble_file): Stat symlinks also when printing withJim Meyering
color and set linkok to reflect existence of referent. Patches from Joakim Rosqvist, James Antill, and Jesse Thilo.
1996-12-04(print_color_indicator): Initialize EXT to NULL.Jim Meyering
1996-12-03(print_color_indicator): Check the file's suffix onlyJim Meyering
if it's a regular file. (print_type_indicator): Use S_IXUGO instead of writing out (S_IEXEC | S_IXGRP | S_IXOTH). (length_of_file_name_and_frills): Likewise.
1996-11-30(main): Close stdout and check result, in case any deferred writes fail.Jim Meyering
Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
1996-11-23(usage): Alphabetize option descriptions the way sort -f would.Jim Meyering
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-11-02(gobble_file): Set linkok for non-orphaned symlinks.Jim Meyering
From Bauke Jan Douma. (gobble_file): Initialize linkok. With these two changes, ls --color should display orphaned symlinks as blinking text on terminals that support it.
1996-10-29(decode_switches): Make -A set really_all_files to zeroJim Meyering
as well as setting all_files to 1. With this change, ls -f -A prints everything but . and .., unsorted. Before, the -A was effectively ignored. From Karl Berry.
1996-10-13(print_long_format): Use strftime of localtimeJim Meyering
(not ctime) to produce the date/time in long listings. From Rafal Maszkowski.
1996-10-09(usage): Improve brief descriptions of --sort and --time.Jim Meyering
From François Pinard.
1996-10-08(usage): Improve usage messagesJim Meyering
1996-10-05(print_long_format): Add support for Cray's migrated dmf files.Jim Meyering
From Johan Danielsson.
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-08-31(usage): remove spurious trailing \n in puts.Jim Meyering
1996-08-29(usage): Tell where to report bugs.Jim Meyering
1996-07-08Make initial colors for `color_indicator' match thoseJim Meyering
currently in dircolors.hin.
1996-07-08Include termios.h.Jim Meyering
Guard inclusion of sys/ioctl.h with #ifdef GWINSZ_IN_SYS_IOCTL, rather than HAVE_SYS_IOCTL_H. Modelled after sh-utils' stty.c at suggestion from Chip Bennett <BennettC@j64.stratcom.af.mil>.
1996-07-04(main): Fix typo in last change.Jim Meyering
1996-07-04Make `dir --version' and `vdir --version' print their names, not `ls'.Jim Meyering
Reported by Ulrich Drepper.
1996-07-03(usage): Add omitted \n\ at the end of a line in the usage message.Jim Meyering
1996-06-29Remove u from Colour.Jim Meyering