Jim Meyering
44b11d6e67
(usage): Fix parentheses.
1996-07-10 03:56:45 +00:00
Jim Meyering
5885cbf0d2
(UID_T_MAX): Use `(unsigned long)1' rather than
...
`(uid_t)1' to avoid problems on systems where uid_t is signed.
(GID_T_MAX): Likewise for gid_t.
From Kjetil Torgrim Homme <kjetilho@ifi.uio.no >.
1996-07-10 03:33:01 +00:00
Jim Meyering
a4d13e4b8f
(long_options): Add print-data-base and print-database.
...
(usage): Rearrange option descriptions.
1996-07-10 03:26:18 +00:00
Jim Meyering
12beb90e58
.
1996-07-10 03:18:55 +00:00
Jim Meyering
4623f5dca3
(usage): Add a one-line description to --help message.
...
From Karl Berry.
1996-07-10 03:18:31 +00:00
Jim Meyering
b124be4eb1
Change C-shell to `C shell'.
1996-07-10 03:16:30 +00:00
Jim Meyering
84b6d13a3c
(dc_parse_stream): Don't give `unrecognized keyword'
...
message unless we've processed a matching TERM directive.
1996-07-10 03:15:39 +00:00
Jim Meyering
3e0fdc1a0b
(MAXCOST): Use (unsigned long)1' rather than (COST)1'
...
so the left operand of the << isn't signed.
From Kjetil Torgrim Homme.
1996-07-10 03:02:54 +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
744ef2d96f
Recognize more filename extensions. From Joshua Cowan.
1996-07-08 03:58:36 +00:00
Jim Meyering
0472107417
(usage): Factor out backup-related text into separate string/printf statement.
1996-07-06 22:50:57 +00:00
Jim Meyering
e1de1d3a93
(usage): Factor out backup-related text into separate string/printf statement.
1996-07-06 22:50:36 +00:00
Jim Meyering
195f8a213e
[!STDC_HEADERS]: Declare free. From Marcus Daniels.
1996-07-06 03:17:09 +00:00
Jim Meyering
2b1f600cbd
(usage): Remove space before newline in usage message.
1996-07-05 03:40:21 +00:00
Jim Meyering
9824efff73
(usage): Remove space before newline in usage message.
1996-07-05 03:39:12 +00:00
Jim Meyering
7fbe57368e
(usage): Remove space before newline in usage message.
1996-07-05 02:49:48 +00:00
Jim Meyering
21c0d8f1f0
(usage): Remove space before newline in usage message.
1996-07-05 02:29:10 +00:00
Jim Meyering
316490baea
(usage): Remove space before newline in usage message.
1996-07-05 02:28:29 +00:00
Jim Meyering
f8514af7a6
(split_3): Add missing semicolon. From Jim Blandy.
1996-07-04 22:51:52 +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
2926167cfa
(md5_file): Replace obsolete comment with a description
...
of the function.
(md5_check): Don't use "s"-adding trick to form the plural of
`checksum.' That doesn't work well with translation.
Suggestions from Ulrich Drepper.
1996-07-04 14:53:25 +00:00
Jim Meyering
b97436b18b
(MIN_DIGEST_LINE_LENGTH): New macro.
...
[NEWLINE_REPLACEMENT_STRING*]: Remove macros.
(main): Output a leading backslash for a line describing a file
whose name contains a newline. Then translate each NEWLINE byte
in the file name to the string, "\\n", and each backslash to "\\\\".
File names that don't contain NEWLINE aren't translated.
(split_3): Rewrite to handle file names with embedded newlines.
Miles Bader and Jim Blandy suggested this new encoding scheme.
1996-07-04 12:41:53 +00:00
Jim Meyering
4adeb81260
(split_3): Correct test for 35-byte line to accomodate
...
fact that leading blanks may be stripped.
1996-07-04 04:22:25 +00:00
Jim Meyering
b467d6d513
Include sys/types.h before system.h.
...
From Jim Blandy (jimb@cyclic.com ).
1996-07-03 22:59:18 +00:00
Jim Meyering
ce85352146
[!MAXUID]: Define after inclusion of system.h to avoid
...
warning about redefinition on SunOS4, Solaris2.4 and SGI-irix5.3.
From Kaveh Ghazi.
1996-07-03 22:42:41 +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
7b2cea5ab2
[!EXIT_SUCCESS]: Define it.
...
[!EXIT_FAILURE]: Define it.
1996-07-03 04:00:36 +00:00
Jim Meyering
bb4d193ac7
[NEWLINE_REPLACEMENT_STRING]: Define.
...
(split_3): Translate NL bytes not to NUL, but to
NEWLINE_REPLACEMENT_STRING.
Suggested by Ulrich Drepper.
(main): Translate back to NL-containing filename.
1996-07-02 04:54:51 +00:00
Jim Meyering
1372968ab0
(do_link): Update messages to ease translation.
...
Suggestion from Santiago Vila.
1996-07-02 04:48:32 +00:00
Jim Meyering
d2b4bca42e
(main): Remove now-unnecessary diagnostic about filename containing NEWLINE.
1996-07-01 03:48:10 +00:00
Jim Meyering
6dceaa1d9d
(split_3): Take an additional parameter, S_LEN.
...
Adapt caller.
Map translated NEWLINE-containing filename back into the original
NEWLINE-containing name.
(md5_check): Translate NEWLINE bytes to NUL bytes in filename.
1996-07-01 03:47:16 +00:00
Jim Meyering
2b37242292
(usage): Fix typo, 3nd->3rd, in usage message.
...
From Santiago Vila <sanvila@unex.es >.
1996-06-30 21:42:49 +00:00
Jim Meyering
bb389bead8
Remove u from Colour.
1996-06-29 05:28:32 +00:00
Jim Meyering
cd53ea93c5
(dc_parse_stream): Move enum states dcl into this function.
...
(dc_parse_stream): Remove parameter RESULT.
Adapt callers.
1996-06-29 04:11:43 +00:00
Jim Meyering
e81d02baf1
(do_link): Allow `ln -sf --backup k k' to succeed in creating the
...
self-referential symlink, doing so doesn't remove the source but merely
renames it.
1996-06-29 03:58:48 +00:00
Jim Meyering
ba87d08c0e
(do_link): Remove `!symlink &&' conjunct.
1996-06-26 12:31:13 +00:00
Jim Meyering
d9c0413f79
(same_name): Declare parameters to be const.
1996-06-26 12:05:35 +00:00
Jim Meyering
216777ea17
(same_name): New function.
...
(do_link): Use it to test reliably whether A and B (from
ln --force A B) are hard links to the same file.
From Andreas Schwab.
1996-06-26 12:02:02 +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
80c03e37ba
.
1996-06-25 04:26:12 +00:00
Jim Meyering
71e65bb036
(dc_parse_stream): Give `unrecognized keyword' for misspelled
...
`TERM' keyword as well as for others.
1996-06-25 04:26:01 +00:00
Jim Meyering
408a47499e
(dc_parse_stream): Remove spurious newline in error message.
...
(dc_parse_file): Remove erroneous test of ERR.
1996-06-25 03:41:29 +00:00
Jim Meyering
30a65b1aa3
Use an obstack to accumulate value of LS_COLORS.
1996-06-24 03:06:52 +00:00
Jim Meyering
0a3fdd250a
.
1996-06-24 03:01:46 +00:00
Jim Meyering
b617aa5f3f
Add comma after e.g. in comment.
...
From Karl B.
1996-06-23 19:15:15 +00:00
Jim Meyering
d392de74de
* (parse_line): Rewrite to avoid modifying LINE.
...
Put LINE first in parameter list.
Adjust caller.
(dc_parse_stream): Free KEYWD and ARG.
(main): Give diagnostic for unreasonable combinations of
options/arguments.
1996-06-23 19:03:31 +00:00
Jim Meyering
af41baeb91
(main): New option --print (-p).
...
Detect write failure.
Add --bourne-shell and --c-shell aliases for --sh and --csh resp.
1996-06-22 22:27:32 +00:00
Jim Meyering
98b663a29b
Major overhaul. No longer read from /etc/DIR_COLORS or from ~/.dircolors.
...
Defaults are now compiled in. If you specify a file on the command line,
it is used instead of the compiled-in defaults.
1996-06-22 22:02:37 +00:00