Jim Meyering
ad44ac84c8
(print_color_indicator): Initialize EXT to NULL.
1996-12-04 01:21:28 +00:00
Jim Meyering
b87899c834
(print_color_indicator): Check the file's suffix only
...
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-12-03 02:33:09 +00:00
Jim Meyering
d740a98d4a
(main): Close stdout and check result, in case any deferred writes fail.
...
Use EXIT_SUCCESS and EXIT_FAILURE in exit and usage calls.
1996-11-30 03:20:48 +00:00
Jim Meyering
bded355394
(usage): Alphabetize option descriptions the way sort -f would.
1996-11-23 22:13:00 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
1a58046071
(gobble_file): Set linkok for non-orphaned symlinks.
...
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-11-02 15:28:08 +00:00
Jim Meyering
d7749da3e9
(decode_switches): Make -A set really_all_files to zero
...
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-29 12:51:37 +00:00
Jim Meyering
beb67dc954
(print_long_format): Use strftime of localtime
...
(not ctime) to produce the date/time in long listings.
From Rafal Maszkowski.
1996-10-13 19:04:51 +00:00
Jim Meyering
2dc3ad1a76
(usage): Improve brief descriptions of --sort and --time.
...
From François Pinard.
1996-10-09 12:24:26 +00:00
Jim Meyering
d4cf394f30
(usage): Improve usage messages
1996-10-08 04:35:19 +00:00
Jim Meyering
7c17502e74
(print_long_format): Add support for Cray's migrated dmf files.
...
From Johan Danielsson.
1996-10-05 20:17:09 +00:00
Jim Meyering
4f28f318d8
(main): update --version output to conform to coding standard
1996-10-05 13:14:11 +00:00
Jim Meyering
c9fff51897
(usage): remove spurious trailing \n in puts.
1996-08-31 04:44:31 +00:00
Jim Meyering
7e294bac78
(usage): Tell where to report bugs.
1996-08-29 05:05:57 +00:00
Jim Meyering
013f2fe433
Make initial colors for `color_indicator' match those
...
currently in dircolors.hin.
1996-07-08 04:25:49 +00:00
Jim Meyering
9d691ba42f
Include termios.h.
...
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-08 04:19:36 +00:00
Jim Meyering
a7d29c59fa
(main): Fix typo in last change.
1996-07-04 17:41:05 +00:00
Jim Meyering
e7342330e5
Make dir --version' and vdir --version' print their names, not `ls'.
...
Reported by Ulrich Drepper.
1996-07-04 17:35:47 +00:00
Jim Meyering
38762b8f78
(usage): Add omitted \n\ at the end of a line in the usage message.
1996-07-03 04:04:06 +00:00
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