Commit Graph
100 Commits
Author SHA1 Message Date
Jim Meyering bb389bead8 Remove u from Colour. 1996-06-29 05:28:32 +00:00
Jim Meyering f58702e8f9 (decode_switches): Allow 0 as argument to --tabsize (-T) option.
Interpret as a directive to use no TAB characters to separate columns.
(indent): Handle TABSIZE == 0.
1996-06-25 04:56:22 +00:00
Jim Meyering e3c3d0b385 (parse_ls_color): Use STREQ here instead of strcmp(...) == 0. 1996-06-19 04:22:28 +00:00
Jim Meyering e26d180b8c (decode_switches): Correct typo in error message: enironment -> environment.
From Santiago Vila Doncel <sanvila@unex.es>.
1996-06-19 03:25:44 +00:00
Jim Meyering d6bf80ccc7 Declare pointer parameters const as appropriate. 1996-06-02 02:52:37 +00:00
Jim Meyering f51eb4a5cc (decode_switches): Set print_with_color in one statement. 1996-06-01 23:08:35 +00:00
Jim Meyering de40301f0a Rename options and internal variables to reflect change to
--color=WHEN where WHEN is never, always, or auto (for consistency
with e.g. cp --sparse=WHEN.  For at least a while, the original
slackware-supported arguments `none', `force', `yes', etc will be
supported but deprecated by lack of documentation.
(decode_switches): Use STDOUT_FILENO instead of `1' in is_tty test.
(usage): Update/add description of the --color option.
1996-06-01 18:36:19 +00:00
Jim Meyering 63d49273c4 (usage): Make --literal (-N) description clearer. 1996-05-23 12:52:54 +00:00
Jim Meyering 437e9a0bc4 . 1996-05-02 02:47:10 +00:00
Jim Meyering 389c4049b3 (parse_ls_color, usage): Remove support for alternate spellings:
--colours and LS_COLOURS.
(parse_ls_color): Reverse sense of test for LS_COLORS environment
variable and return -- save a level of indentation on a 100+-line block.
1996-05-02 02:45:43 +00:00
Jim Meyering 482d5be531 (parse_ls_color, usage): Remove support for alternate spellings:
--colours and LS_COLOURS.
1996-05-01 05:19:34 +00:00
Jim Meyering 07e148c8e7 (print_name_with_quoting): Add braces around inner if-else stmt. 1996-04-29 04:53:53 +00:00
Jim Meyering 8455ea2e13 (LEN_STR_PAIR): New macro.
(color_indicator): Use it in this declaration.
(parse_ls_color): Use error, not fprintf.
(decode_switches): Add a comment.
1996-04-29 04:52:16 +00:00
Jim Meyering 95439d0f33 (parse_ls_color): Use strcpy to initialize 3-character array.
Automatic aggregate initialization isn't portable.
1996-04-29 04:31:24 +00:00
Jim Meyering aa7d0d8c85 Remove all ^L's.
(get_funky_string): Declare static and move to precede single
caller: parse_ls_color.
1996-04-29 04:29:06 +00:00
Jim Meyering 3ce3cb772d (get_funky_string): Upper-case anon. union `state'. 1996-04-29 04:26:47 +00:00
Jim Meyering e08a28e045 Apply color ls changes from Drepper. 1996-04-29 04:24:07 +00:00
Jim Meyering c17caa0c0f Fri Apr 26 05:52:03 1996 Karl Eichwalder <ke@ke.Central.DE>
* ls.c (usage): Add newline at end of printf format string.
1996-04-27 04:10:54 +00:00
Jim Meyering dc98736719 update Copyright years for 1996 1996-04-24 04:42:21 +00:00
Jim Meyering 0126f74936 (decode_switches): Replace two more atoi uses with xstrtol. 1996-04-21 04:45:12 +00:00
Jim Meyering 7d956ece8c (decode_switches): Use getenv (POSIXLY_CORRECT), not undefined posix_pedantic. 1996-04-21 04:11:43 +00:00
Jim Meyering ee708ff4aa (decode_switches): Clean up last change.
[posix_pedantic]: Don't consider TABSIZE environment variable.
1996-04-21 04:07:41 +00:00
Jim Meyering c1f1f8ac3a (decode_switches): Use xstrtol, not atoi.
Detect and ignore invalid value for COLUMNS environment variable.
In error about invalid TABSIZE, don't reference optarg!
1996-04-21 03:52:30 +00:00
Jim Meyering 43b84ec02e Remove fixed FIXME. 1996-04-05 04:00:05 +00:00
Jim Meyering 3d1c60aba7 . 1996-03-31 17:19:06 +00:00
Jim Meyering 399abab9bc (quote_filename): Use ISGRAPH and ISPRINT in place of
ASCII-centric tests against literals.
(length_of_file_name_and_frills): Likewise.
1996-03-31 17:18:28 +00:00
Jim Meyering 908040f25e Rip out color support. 1996-03-31 14:22:12 +00:00
Jim Meyering 5de0b392f2 Update FSF's address. 1996-03-24 18:47:09 +00:00
Jim Meyering bb6a548712 (main): Declare to be of type int, not void. 1996-03-21 22:45:19 +00:00
Jim Meyering ca0246a4c1 Don't include version.h.
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 16:49:28 +00:00
Jim Meyering 10c96c43ac (main): Initialize for internationalized message support: call setlocale,
bindtextdomain, and textdomain.
1996-03-12 03:08:30 +00:00
Jim Meyering c22b040b21 (decode_switches): Make -o a synonym for -lG for compatibility
with most other versions of ls.  Reported by Karl Berry.
(usage): Update.
1995-12-23 17:38:08 +00:00
Jim Meyering b808e70940 Include argmatch.h. 1995-12-22 05:31:17 +00:00
Jim Meyering 073c4cb543 Mark all translatable strings using po-mode.el. 1995-11-29 19:24:52 +00:00
Jim Meyering 57ec0f45c9 s/non-zero/nonzero/g 1995-11-27 05:34:31 +00:00
Jim Meyering c6394074a8 (parse_ls_color): Use strcpy to initialize 3-character array.
Automatic aggregate initialization isn't portable.
1995-11-10 14:54:08 +00:00
Jim Meyering 6f1c4b7a75 Protect prototypes with __P. 1995-11-09 23:47:52 +00:00
Jim Meyering 3e12088cf0 (enum filetype): Move dcl to precede prototypes.
(struct fileinfo): Likewise.
Add const attribute to some parameters.
1995-11-09 23:00:14 +00:00
Jim Meyering c0d94c89ec Protoize. 1995-11-09 17:02:23 +00:00
Jim Meyering 6181f175e3 Use HAVE_SYS_IOCTL_H, rather than !_POSIX_SOURCE || _AIX. 1995-10-18 22:05:06 +00:00
Jim Meyering 527d04d44b (dired_dump_obstack): Don't generate any output if the obstack is empty.
(main): Always initialize and dump subdired_obstack, not just if -R.
`ls -lDR dir dir2' was using uninitialized subdired_obstack.
Reported by Samuli K{rkk{inen <hskarkka@snakemail.hut.fi>.
1995-09-29 04:09:22 +00:00
Jim Meyering 0159470d3d (decode_switches): Set SORT_TYPE. Before, ls -c was sorting
by name, rather than change time.  Reported by Ken Estes
(m-ke0082@sparky.cs.nyu.edu).
1995-08-05 03:09:41 +00:00
Jim Meyering ec8d1fce62 (main): Include program name in --version output. 1995-06-22 18:43:14 +00:00
Jim Meyering ee79446888 (usage): Add one or two lines of descriptive text. 1995-05-22 04:30:18 +00:00
Jim Meyering 99ce9e9832 Use stat (lstat), not safe_stat (safe_lstat). 1995-05-13 12:48:33 +00:00
Jim Meyering 70b90a6f9d (quote_filename): Never return NULL when quoting filenames
as C-strings.  --quote-name was quoting only strings containing
at least one C-quotable character.  Reported by David J. MacKenzie.
1995-05-02 04:04:32 +00:00
Jim Meyering 1423198343 add 1995 to Copyright dates 1995-03-10 04:15:06 +00:00
Jim Meyering 9ac5e4ef97 (color_indicator[0]): Add missing `['. 1995-02-27 16:37:54 +00:00
Jim Meyering 69f39255bc Rename SAFE_STAT and SAFE_LSTAT to lower case names. 1995-01-27 17:03:21 +00:00
Jim Meyering 59097c0922 Include "error.h" rather than simply declaring `void error ();'. 1994-12-27 13:36:22 +00:00