Jim Meyering
e298f1f300
(usage): Alphabetize options like sort -f would.
1996-11-23 22:06:55 +00:00
Jim Meyering
94d1ea4fa9
(copy): With -i and not -f, prompt for any type of
...
(non-directory) source file before overwriting an existing target.
Reported by Mark A. Thomas.
1996-11-23 04:15:35 +00:00
Jim Meyering
38da840313
(main): Warn if excess arguments are ignored.
...
E.g., printf foo bar now ignores the single non-format argument, bar.
1996-11-23 02:34:31 +00:00
Jim Meyering
0d3f6a6665
(process_regexp): Update CURRENT_LINE only if
...
the new value would be larger. This avoids the infinite loop
otherwise provoked by situations like this:
printf "\na\n" | csplit - '/a/-1' '{*}'
From Jens Schmidt.
1996-11-23 02:32:10 +00:00
Jim Meyering
4b7c7e9d33
Remove unused declaration of mktime. From Tony Leneis.
1996-11-18 02:54:14 +00:00
Jim Meyering
a4f0dde547
(main): Ignore -a, for compatibility with SVR4.
1996-11-18 02:50:21 +00:00
Jim Meyering
25abc2a9b4
(recover_mode): Fail also if there are too many fields. From Karl Heuer.
1996-11-04 00:22:26 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
2e55854100
change bug-reporting address
1996-11-03 03:16:23 +00:00
Jim Meyering
17c0c658f1
change bug-reporting address
1996-11-02 20:44:52 +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
f1af346ad5
(main): Give better diagnostic.
...
Suggestion from Karl Berry.
1996-11-02 06:16:44 +00:00
Jim Meyering
950325ee23
.
1996-11-02 05:14:21 +00:00
Jim Meyering
febf70b73f
[!ENABLE_ASSERTIONS]: Guard NDEBUG definition.
...
(checkfp): Fix off-by-one error that resulted in writing one byte
beyond the end of a malloc'd buffer. It caused `sort -c' to segfault
on Linux systems having a relatively recent libc. Before, running
the command, perl -e "print 'x' x 30, \"\n\";"|sort -c
would provoke the memory overrun (though not necessarily the failure).
Add an assertion.
1996-11-02 03:47:04 +00:00
Jim Meyering
24e88142ba
(key_init): New function.
...
(main): Use key_init in the two places where it was open-coded.
1996-11-01 00:08:58 +00:00
Jim Meyering
f9cd2cf6e2
(decode_field_spec): Always give FIELD_INDEX a value.
...
This avoids spurious UMR from purify.
(prjoin): Add an assertion.
(add_field): Update assertion.
1996-10-31 23:55:04 +00:00
Jim Meyering
0a1ac00ad6
(es_free): New function.
...
(parse_str): Use it to plug small memory leak.
1996-10-31 23:49:42 +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
84b8cf9fcf
(main): Ignore SIGPIPE.
1996-10-29 04:16:59 +00:00
Jim Meyering
b8ad9be908
Guard inclusion of stdarg.h and definition of VA_START
...
with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
loses with Dynix/PTX.
(wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
Suggestion from Marcus Daniels.
1996-10-24 04:46:33 +00:00
Jim Meyering
dc14f81457
Comment out DOS-style suffixes.
1996-10-21 21:52:53 +00:00
Jim Meyering
263773a385
(validate): Remove TAB from diagnostic, for consistency.
1996-10-21 21:50:32 +00:00
Jim Meyering
7b4f54f83f
(main): Remove TAB from diagnostic, for consistency.
1996-10-21 21:49:41 +00:00
Jim Meyering
ac22b4589d
(print_entry): Don't take address of UT_TIME_MEMBER directly.
...
From Ulrich Drepper.
1996-10-20 19:14:37 +00:00
Jim Meyering
70ef71caf5
(get_next): Rewrite to treat lower/upper mapping as a special case.
...
(main): Write separate loops to initialize mapping for lower->upper
and upper->lower conversion.
1996-10-16 04:29:02 +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
bc2d814543
(usage): Remove parameter, REASON.
...
(main): Update callers to use combination of error (0, 0, ... and
usage (EXIT_FAILURE).
1996-10-13 17:53:47 +00:00
Jim Meyering
d0909b6911
(print_uptime): Change #ifdef guard on getloadavg
...
call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
From Kaveh R. Ghazi.
1996-10-12 04:17:25 +00:00
Jim Meyering
2dc3ad1a76
(usage): Improve brief descriptions of --sort and --time.
...
From Franois Pinard.
1996-10-09 12:24:26 +00:00
Jim Meyering
8573fc6ac9
(usage): Improve diagnostic
1996-10-08 04:37:19 +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
c5de1e3532
(main): update --version output to conform to coding standard
1996-10-05 18:04:52 +00:00
Jim Meyering
a13e04ed9d
fix --version output
1996-10-05 17:12:55 +00:00
Jim Meyering
f04044ed86
(main): update --version output to conform to coding standard
1996-10-05 16:37:57 +00:00
Jim Meyering
4f28f318d8
(main): update --version output to conform to coding standard
1996-10-05 13:14:11 +00:00
Jim Meyering
2c035a7cfd
(main): update --version output again
1996-10-04 04:28:35 +00:00
Jim Meyering
be4153d2a8
(main): Remove dead code that used to print --version output.
1996-10-04 04:28:28 +00:00
Jim Meyering
630b771f1b
(main): update --version output again
1996-10-04 04:25:46 +00:00
Jim Meyering
de05a873ec
(main): update --version output to conform to coding standard
1996-10-04 04:16:01 +00:00
Jim Meyering
3361bd2bca
(main): update --version output to conform to coding standard
1996-10-04 04:15:08 +00:00
Jim Meyering
a3edb3f940
(usage): Deprecate --print-data-base even though
...
that's the way GNU make writes it. `database' is one word.
Add description of FILE argument.
1996-10-03 02:45:59 +00:00
Jim Meyering
39c406f18a
.
1996-10-01 01:10:54 +00:00
Jim Meyering
96cdeb978e
(do_copy): Give better error message when copying multiple
...
files and the last one is not a directory. From Karl Berry.
Call error (0, 0, ... then usage (1) -- instead of calling usage
with two arguments.
1996-09-30 03:04:54 +00:00
Jim Meyering
e666e3459e
.
1996-09-28 18:51:37 +00:00
Jim Meyering
d7477dbf0c
(usage): Remove references in --help output to
...
the now-deprecated --string option. Support for it will be
removed soon.
1996-09-27 02:09:57 +00:00
Jim Meyering
85cddd3119
(keycompare): Declare translate to be unsigned char *.
...
Otherwise, sign extension caused misordering when using e.g. -f.
1996-09-23 03:02:04 +00:00
Jim Meyering
eaa41b023f
(xstrndup): Use message that's the same as the one
...
you get from e.g., xmalloc. Reported by Santiago Vila.
1996-09-21 15:23:35 +00:00
Jim Meyering
9cde1990ab
(do_copy): Describe in a little *more* detail the code
...
that makes `cp non-directory file/' (eventually) fail.
1996-09-10 03:09:31 +00:00