Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 7471db2e0d *** empty log message *** 2001-09-15 12:52:55 +00:00
Jim Meyering e1e70abfab (UNWRITABLE): Define (factored out of copy_internal).
(copy_internal): Use UNWRITABLE.
2001-09-15 12:46:05 +00:00
Jim Meyering cb40817c27 (copy_internal) [move_mode]: Support the new
--reply=... option.
2001-09-15 12:34:17 +00:00
Jim Meyering a9b3766804 Accept new option: --reply={yes,no,query}
Include argmatch.h.
(enum) [REPLY_OPTION]: Define.
(usage): Describe new option.
Split long usage string into smaller pieces.
(main): Handle new option.
2001-09-15 11:38:36 +00:00
Jim Meyering 6b6a9cd8c4 (main): Reflect renaming: s/I_ON/I_ASK_USER/. 2001-09-15 11:21:23 +00:00
Jim Meyering d929a883fc (enum Interactive): Remove members, I_OFF and I_ON.
Instead, add I_ALWAYS_YES, I_ALWAYS_NO, and I_ASK_USER.
2001-09-15 11:20:47 +00:00
Jim Meyering 8ddf9aa30c *** empty log message *** 2001-09-15 11:18:51 +00:00
Jim Meyering 2b87d03f50 Clean up: use priv-check rather than open-coding it. 2001-09-15 11:18:40 +00:00
Jim Meyering 836ab0b6f7 *** empty log message *** 2001-09-15 11:16:12 +00:00
Jim Meyering 08e983d3df (main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
2001-09-15 11:15:56 +00:00
Jim Meyering 222d08dc72 (main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
2001-09-15 11:14:49 +00:00
Jim Meyering 099fd9e8f0 (main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
2001-09-15 11:14:09 +00:00
Jim Meyering 52d78f0558 (main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
2001-09-15 10:32:36 +00:00
Jim Meyering 72dadf240e (main): Don't strip trailing slashes; POSIX doesn't allow it here.
Don't include "dirname.h" when no longer needed.
2001-09-15 10:32:05 +00:00
Jim Meyering 917893f4d3 *** empty log message *** 2001-09-12 09:07:40 +00:00
Jim Meyering 63a52bbb4c The command `echo a|./fmt -2147483647' would cause fmt to segfault.
(fmt_paragraph): Test for sentinal directly, rather than
doing arithmetic with it's potentially large (INT_MAX) length.
2001-09-12 09:07:35 +00:00
Jim Meyering ea7b78f868 *** empty log message *** 2001-09-12 09:05:27 +00:00
Jim Meyering 707be37f35 Add wide-1 and wide-2. 2001-09-12 09:04:52 +00:00
Jim Meyering 7ef999a43f *** empty log message *** 2001-09-12 07:45:27 +00:00
Jim Meyering 73a5c3b847 *** empty log message *** 2001-09-12 07:37:50 +00:00
Jim Meyering 37991cf4a9 *** empty log message *** 2001-09-12 07:31:25 +00:00
Jim Meyering 940b6777c0 (tail invocation): Document new option: -F.
From Herbert Xu.
2001-09-12 07:31:19 +00:00
Jim Meyering e440740bd9 *** empty log message *** 2001-09-12 07:30:29 +00:00
Jim Meyering 8a6d80dda1 *** empty log message *** 2001-09-12 07:28:06 +00:00
Jim Meyering 388c1a6104 tail: accept new option: -F, equivalent to `--follow=name --retry',
for compatibility with FreeBSD and NetBSD versions of tail.

(usage): Describe new option.
(parse_options): Accept it.
2001-09-12 07:27:29 +00:00
Jim Meyering 484ce2d8de The command `echo foo| fmt -w 100000' would cause fmt to segfault.
[struct Word]: Declare members length, space, and
line_length to be of type `int', not short.
(MAXCOST): Define using TYPE_MAXIMUM.
2001-09-12 06:41:01 +00:00
Jim Meyering caa75371a8 . 2001-09-11 20:12:26 +00:00
Jim Meyering 78c5e7b7ba . 2001-09-11 20:11:47 +00:00
Jim Meyering 414207ccc7 *** empty log message *** 2001-09-11 20:11:37 +00:00
Jim Meyering 58eeea1ac8 Require UTILS_HOST_OS. 2001-09-11 20:11:30 +00:00
Jim Meyering 5ae09a5d3d *** empty log message *** 2001-09-11 20:11:04 +00:00
Jim Meyering 8deb67d1db (UTILS_HOST_OS): New file/macro.
The body, by Paul Eggert, was moved here from configure.in.
2001-09-11 20:10:44 +00:00
Jim Meyering 99eb99dc7d *** empty log message *** 2001-09-09 18:40:45 +00:00
Jim Meyering 5d1daca135 (binary_operator): Correct typo in diagnostic.
From Jochen Hein.
2001-09-09 18:40:24 +00:00
Jim Meyering 1a282c62b7 *** empty log message *** 2001-09-08 13:23:31 +00:00
Jim Meyering 4d6b3bb492 (TESTS): Add i-4. 2001-09-08 13:23:22 +00:00
Jim Meyering 55a0417174 *** empty log message *** 2001-09-08 13:22:58 +00:00
Jim Meyering 326aa5c043 (copy_internal): Add braces around now-multi-stmt
if-block.  This fixes a bug introduced by my 2001-08-06 change.
2001-09-08 13:22:41 +00:00
Jim Meyering ca01db1efe *** empty log message *** 2001-09-07 09:47:46 +00:00
Jim Meyering 14c3068647 *** empty log message *** 2001-09-07 09:47:10 +00:00
Jim Meyering deef029135 *** empty log message *** 2001-09-07 09:46:49 +00:00
Jim Meyering c21b31a36f New 'uname' options -i or --hardware-platform,
and -o or --operating-system.
'uname -a' now outputs -i and -o information at the end.
New uname option --kernel-version is an alias for -v.
Uname option --release has been renamed to --kernel-release,
and --sysname has been renamed to --kernel-name;
the old options will work for a while, but are no longer documented.
2001-09-07 09:44:07 +00:00
Jim Meyering aaeb7a61c4 Correct copyright notice as per latest coding standards.
Remove list of options in comment, which wasn't
worth maintaining separately from usage().

(print_element): Move definition up, avoiding the need for
declaration and allowing inlining on some platforms.
Keep track of whether something has been printed; this is more
natural than modifying `toprint'.

(PRINT_KERNEL_NAME): Renamed from PRINT_SYSNAME.
(PRINT_KERNEL_RELEASE): Renamed from PRINT_RELEASE.
(PRINT_KERNEL_VERSION): Renamed from PRINT_VERSION.
(PRINT_HARDWARE_PLATFORM, PRINT_OPERATING_SYSTEM): New macros.
(toprint): Remove global var; now local in `main'.
(long_options, usage, main): Implement changes described in NEWS.
Reorder options to reflect output order.
(main): Use buffers one byte longer, for compatibility with Solaris 8.
Output newline at end.  -a sets `toprint' to -1 now; this is simpler.
Do not bother invoking system calls like uname if the resulting
information does not need to be printed.
Do not fail if sysinfo fails; just print "unknown".
2001-09-07 09:43:03 +00:00
Jim Meyering 3a6d52861d *** empty log message *** 2001-09-06 14:36:28 +00:00
Jim Meyering 3737902524 (join invocation): Describe the GNU
extension to join, which does not require sorted input when
the input contains no unpairable lines.
2001-09-06 14:36:21 +00:00
Jim Meyering 09026d5413 *** empty log message *** 2001-09-04 20:28:35 +00:00
Jim Meyering c01a38db4d Revert some of the previous change; intead,
fix the HAVE_GETCWD_NULL code to behave more like the
!HAVE_GETCWD_NULL code used to.

Include "xalloc.h".
(xgetcwd): Do not return NULL when memory is exhausted; instead,
invoke xalloc_die.
2001-09-04 20:28:31 +00:00
Jim Meyering 1e50f47812 *** empty log message *** 2001-09-04 20:24:18 +00:00
Jim Meyering 87261b73b3 (get_link_name): Update use of xreadlink. 2001-09-04 20:23:48 +00:00
Jim Meyering 121f936e4f . 2001-09-04 20:22:47 +00:00