Jim Meyering
e549af7279
(OFF_T_MAX): Remove definition.
...
(main): Compare against LONG_MAX rather than OFF_T_MAX.
1996-07-17 03:13:54 +00:00
Jim Meyering
03cc8c8ca3
[OFF_T_MAX]: Use (unsigned long)1' rather than (off_t)1'
...
so the left operand of the << isn't signed.
From Kaveh Ghazi.
1996-07-16 05:14:00 +00:00
Jim Meyering
9e10989282
(print_uptime): Reverse days' and day' in uptime message.
...
From Kaveh R. Ghazi.
1996-07-16 04:50:12 +00:00
Jim Meyering
9c53920ae6
(print_uptime): Use 0, not undefined errno in
...
couldn't-get-boot-time diagnostic. From Ulrich Drepper.
1996-07-15 01:07:16 +00:00
Jim Meyering
7d026dd508
[HAVE_LIMITS_H]: Include limits.h for INT_MAX.
...
[!INT_MAX]: Define it.
(main): Append INT_MAX to command-line-specified tab list to
ensure termination in unexpand's inner loop.
Derived from a patch from Keith Owens.
1996-07-14 22:28:52 +00:00
Jim Meyering
178f23fbb7
(unexpand): Fix bug that contributed to endless loop
...
when invoking `echo ' ' |unexpand -t 1,2': use print_tab_index, not
tab_index in inner flush_pend: while loop. From Keith Owens
<kaos@audio.apana.org.au >.
1996-07-14 22:24:28 +00:00
Jim Meyering
d38f60e27c
(usage): Sort option descriptions in dictionary order.
1996-07-14 12:54:12 +00:00
Jim Meyering
4d7a57cf34
(long_options): Add missing last line of NULL
...
entries. From Ralph Loader <loader@maths.ox.ac.uk >.
1996-07-14 12:37:24 +00:00
Jim Meyering
c58cd08bf9
(usage): Add a \' after \n' in usage message.
...
Otherwise, SunOS's /bin/cc chokes.
1996-07-14 04:11:17 +00:00
Jim Meyering
7fe510422e
[GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
...
GWINSZ_BROKEN can't be defined anymore.
1996-07-13 19:31:34 +00:00
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