platform/upstream/coreutils.git
19 years agoeuidaccess fixes
Paul Eggert [Sun, 25 Jul 2004 07:40:32 +0000 (07:40 +0000)]
euidaccess fixes

19 years ago(R_OK, W_OK, X_OK, FOK): Remove; system.h defines them.
Paul Eggert [Sun, 25 Jul 2004 07:39:02 +0000 (07:39 +0000)]
(R_OK, W_OK, X_OK, FOK): Remove; system.h defines them.
(eaccess): Remove.  All users changed to use euidaccess instead.

19 years agopathchk.c: Include euidaccess.h.
Paul Eggert [Sun, 25 Jul 2004 07:38:39 +0000 (07:38 +0000)]
pathchk.c: Include euidaccess.h.
(dir_ok): Use euidaccess, not access.

19 years ago(gl_PREREQ): Invoke gl_FUNC_NONREENTRANT_EUIDACCESS,
Paul Eggert [Sun, 25 Jul 2004 07:38:19 +0000 (07:38 +0000)]
(gl_PREREQ): Invoke gl_FUNC_NONREENTRANT_EUIDACCESS,
not gl_FUNC_EUIDACCESS.

19 years ago(gl_FUNC_NONREENTRANT_EUIDACCESS): New macro.
Paul Eggert [Sun, 25 Jul 2004 07:37:55 +0000 (07:37 +0000)]
(gl_FUNC_NONREENTRANT_EUIDACCESS): New macro.
(gl_FUNC_EUIDACCESS): Use AC_CHECK_DECLS_ONCE, not AC_CHECK_DECLS.
(gl_PREREQ_EUIDACCESS): Check for eaccess and setregid decls.
Require AC_HEADER_STAT.

19 years ago[!defined LIBC]: Included group-member.h, stat-macros.h.
Paul Eggert [Sun, 25 Jul 2004 07:37:22 +0000 (07:37 +0000)]
[!defined LIBC]: Included group-member.h, stat-macros.h.
(S_IXUSR, S_IXGRP, S_IXOTH, S_IROTH, S_IWOTH, S_IXOTH):
Remove; now done by stat-macros.h.
(NGROUPS_MAX, group_member): Remove; now down by group-member.h.
No need to include <limits.h>.
(errno): Remove decl; we now assume C89 or better.
(access, getuid, getgid, geteuid, getegid, stat) [defined _LIBC]:
New macros.
(uid, gid, have_ids): Remove these static variables.
They weren't accurate for programs that also invoked setreuid etc.
(euidaccess) [defined EFF_ONLY_OK || defined ACC_SELF ||
HAVE_DECL_EACCSS]: Use builtin substitutes.
[defined _LIBC]: Ignore __libc_enable_secure; it's not a
correct optimization for programs run as root that later
invoke setreuid.
[no builtin substitutes && HAVE_DECL_SETREGID &&
PREFER_NONREENTRANT_EUIDACCESS]:
Use setreuid+setregid to get the correct answer.
[no builtin substitutes && ! (HAVE_DECL_SETREGID &&
PREFER_NONREENTRANT_EUIDACCESS)]:
Don't assume that the stat macros have their historical values,
as POSIX doesn't require this.
[defined TEST]: Include <stdlib.h>; don't include errno.h
twice; include <error.h> rather than "error.h".

19 years agoMove some changelog entries here from ../ChangeLog.
Paul Eggert [Sat, 24 Jul 2004 08:03:55 +0000 (08:03 +0000)]
Move some changelog entries here from ../ChangeLog.

19 years agoFix non-null-terminated-string bugs in who and uptime.
Paul Eggert [Sat, 24 Jul 2004 08:03:40 +0000 (08:03 +0000)]
Fix non-null-terminated-string bugs in who and uptime.

19 years ago(print_uptime) [defined BOOT_MSG]:
Paul Eggert [Sat, 24 Jul 2004 08:03:02 +0000 (08:03 +0000)]
(print_uptime) [defined BOOT_MSG]:
Don't assume ut_line is null-terminated.

19 years ago(print_line): New arguments USERLEN and LINELEN, since USER and LINE
Paul Eggert [Sat, 24 Jul 2004 08:01:49 +0000 (08:01 +0000)]
(print_line): New arguments USERLEN and LINELEN, since USER and LINE
might not be null terminated.  All callers changed.

19 years agoRegenerate.
Paul Eggert [Fri, 23 Jul 2004 22:41:52 +0000 (22:41 +0000)]
Regenerate.

19 years agoFix bug with tail -f and pipes, plus a few other problems with tail.
Paul Eggert [Fri, 23 Jul 2004 22:36:07 +0000 (22:36 +0000)]
Fix bug with tail -f and pipes, plus a few other problems with tail.

19 years agoAdd fcntl-safer.
Paul Eggert [Fri, 23 Jul 2004 22:35:47 +0000 (22:35 +0000)]
Add fcntl-safer.

19 years ago(gl_PREREQ): Add gl_FCNTL_SAFER.
Paul Eggert [Fri, 23 Jul 2004 22:35:07 +0000 (22:35 +0000)]
(gl_PREREQ): Add gl_FCNTL_SAFER.

19 years agoInclude fcntl-safer.h.
Paul Eggert [Fri, 23 Jul 2004 22:33:51 +0000 (22:33 +0000)]
Include fcntl-safer.h.
(COPY_TO_EOF): Set to UINTMAX_MAX, not OFF_T_MAX (which was wrong).
(COPY_A_BUFFER): New macro.
(struct File_spec): New members mtime, mode, blocking.
Remove member n_consecutive_size_changes.
(DEFAULT_MAX_N_CONSECUTIVE_SIZE_CHANGES,
max_n_consecutive_size_changes_between_opens,
MAX_CONSECUTIVE_SIZE_CHANGES_OPTION): Remove.
(long_options, tail_forever, parse_options):
Remove (non-)support for --max-consecutive-size-changes.
(record_open_fd): New function.
(recheck, tail_file): Use it.  Don't assume that stdin is open.
(dump_remainder): Add support for new COPY_A_BUFFER special value.
Treat errno==EAGAIN like EOF, since it might be a nonblocking read.
(recheck): New arg BLOCKING, specifying whether to use blocking reads.
All uses changed.
(n_live_files): Remove, replacing with...
(any_live_files): New function.  All uses changed.
(tail_forever): Use nonblocking I/O unless we know that blocking I/O
is safe; this avoids some hangs when reading from a fifo.
Avoid invoking fstat or sleep when using blocking I/O.
Do not check for changes to size if the file is not a regular file,
as the size is undefined in that case.
Check for changes to mtime or mode, too; this works for non-regular
files.
(tail_forever, main): Redo fflush strategy to work even when input
is nonblocking.  Don't use unbuffered output; just flush when needed.

19 years ago(libfetish_a_SOURCES): Add fcntl-safer.h, open-safer.c.
Paul Eggert [Fri, 23 Jul 2004 22:33:23 +0000 (22:33 +0000)]
(libfetish_a_SOURCES): Add fcntl-safer.h, open-safer.c.

19 years agoNew file.
Paul Eggert [Fri, 23 Jul 2004 22:31:32 +0000 (22:31 +0000)]
New file.

19 years ago(tail invocation): "size has remained the same"
Paul Eggert [Fri, 23 Jul 2004 22:11:49 +0000 (22:11 +0000)]
(tail invocation): "size has remained the same"
-> "file has not changed", which is more accurate for fifos.

19 years agotail: Fix bug with -f and pipes; remove --max-consecutive-size-changes.
Paul Eggert [Fri, 23 Jul 2004 22:11:15 +0000 (22:11 +0000)]
tail: Fix bug with -f and pipes; remove --max-consecutive-size-changes.

20 years agoRegenerate.
Paul Eggert [Thu, 22 Jul 2004 20:58:52 +0000 (20:58 +0000)]
Regenerate.

20 years agoAdd fix for "tail -f" when stdin is a pipe.
Paul Eggert [Thu, 22 Jul 2004 20:55:12 +0000 (20:55 +0000)]
Add fix for "tail -f" when stdin is a pipe.

20 years agoReinstate f-1 test, since we now pass.
Paul Eggert [Thu, 22 Jul 2004 20:54:53 +0000 (20:54 +0000)]
Reinstate f-1 test, since we now pass.
Add a new commented-out f-2 test, which we still fail.
(test_vector): All f-* tests are special cases, not just f-1.

20 years ago(tail invocation): Do not ignore -f for
Paul Eggert [Thu, 22 Jul 2004 20:54:33 +0000 (20:54 +0000)]
(tail invocation): Do not ignore -f for
all pipes, just for when standard input is a pipe and no
file operand is specified.

20 years ago(main): Ignore -f if no file operand is specified
Paul Eggert [Thu, 22 Jul 2004 20:54:04 +0000 (20:54 +0000)]
(main): Ignore -f if no file operand is specified
and standard input is a pipe.

20 years agoPrefer c_strtod to setlocale when scanning floating point.
Paul Eggert [Tue, 13 Jul 2004 00:07:26 +0000 (00:07 +0000)]
Prefer c_strtod to setlocale when scanning floating point.

20 years agoInclude <errno.h>, <stdio.h>, <stdlib.h> even
Paul Eggert [Mon, 12 Jul 2004 18:19:38 +0000 (18:19 +0000)]
Include <errno.h>, <stdio.h>, <stdlib.h> even
if HAVE_GETLOADAVG is defined, so that the test program can work.
(errno): Remove declaration; not needed in C89 or later.
Include "c-strtod.h".
Do not include locale.h or define setlocale; no longer needed.
Include <limits.h>.
(INT_STRLEN_BOUND): New macro.
(getloadavg): Use it to compute buffer size.
Don't assume that buffer will be properly terminated by 'read'.
Use c_strtod instead of setlocale.
(main) [defined TEST]: Return int, not void.

20 years agoInclude c-strtod.h.
Paul Eggert [Mon, 12 Jul 2004 17:55:06 +0000 (17:55 +0000)]
Include c-strtod.h.
(print_uptime): Use c_strtod instead of setlocale and sscanf.
Use long int rather than int to count days (for 64-bit hosts),
and check for arithmetic overflow when converting double to time_t.

20 years ago(gl_C_STRTOD): Add gl_USE_SYSTEM_EXTENSIONS.
Paul Eggert [Mon, 12 Jul 2004 17:50:28 +0000 (17:50 +0000)]
(gl_C_STRTOD): Add gl_USE_SYSTEM_EXTENSIONS.

20 years ago(STRTOD_L): New macro.
Paul Eggert [Mon, 12 Jul 2004 17:50:11 +0000 (17:50 +0000)]
(STRTOD_L): New macro.
(C_STRTOD) [defined LC_ALL_MASK]: Use it, so that the
code is reentrant on platforms that have strtod_l.

20 years agoRegenerate.
Paul Eggert [Mon, 12 Jul 2004 06:43:20 +0000 (06:43 +0000)]
Regenerate.

20 years agoRegenerate.
Paul Eggert [Mon, 12 Jul 2004 06:42:43 +0000 (06:42 +0000)]
Regenerate.

20 years agoprintf now uses long double.
Paul Eggert [Mon, 12 Jul 2004 06:40:24 +0000 (06:40 +0000)]
printf now uses long double.

20 years agoNew file.
Paul Eggert [Mon, 12 Jul 2004 06:39:23 +0000 (06:39 +0000)]
New file.

20 years ago(vstrtold): Renamed from vstrtod.
Paul Eggert [Mon, 12 Jul 2004 06:36:55 +0000 (06:36 +0000)]
(vstrtold): Renamed from vstrtod.
Now returns long double.  All uses changed.
(print_direc): Use "L" length modifier when printing floating point
numbers, since we're now printing long double.

20 years ago(gl_PREREQ): Add gl_C_STRTOLD.
Paul Eggert [Mon, 12 Jul 2004 06:36:02 +0000 (06:36 +0000)]
(gl_PREREQ): Add gl_C_STRTOLD.

20 years agoNew file.
Paul Eggert [Mon, 12 Jul 2004 06:31:53 +0000 (06:31 +0000)]
New file.

20 years ago(c_strtold): New decl.
Paul Eggert [Mon, 12 Jul 2004 06:31:01 +0000 (06:31 +0000)]
(c_strtold): New decl.

20 years agoInclude <config.h> first.
Paul Eggert [Mon, 12 Jul 2004 06:30:36 +0000 (06:30 +0000)]
Include <config.h> first.
(C_STRTOD, DOUBLE, STRTOD): New macros.
(c_strtod): Use them.

20 years ago(libfetish_a_SOURCES): Add c-strtold.c.
Paul Eggert [Mon, 12 Jul 2004 06:29:59 +0000 (06:29 +0000)]
(libfetish_a_SOURCES): Add c-strtold.c.

20 years ago.
Jim Meyering [Thu, 8 Jul 2004 14:04:35 +0000 (14:04 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jul 2004 14:03:45 +0000 (14:03 +0000)]
*** empty log message ***

20 years agoprintf cleanup, to avoid undefined behavior, to add support for
Jim Meyering [Thu, 8 Jul 2004 14:03:20 +0000 (14:03 +0000)]
printf cleanup, to avoid undefined behavior, to add support for
formats that Bash supports, and to support wide integers like
Bash does.

Add tests for the above.

20 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jul 2004 14:01:59 +0000 (14:01 +0000)]
*** empty log message ***

20 years agoprintf cleanup, to avoid undefined behavior, to add support for
Jim Meyering [Thu, 8 Jul 2004 14:01:49 +0000 (14:01 +0000)]
printf cleanup, to avoid undefined behavior, to add support for
formats that Bash supports, and to support wide integers like
Bash does.

(UNSPECIFIED): Remove.  All uses now replaced by
booleans, so that we don't reserve any values for precision or
width (like Bash).
(STRTOX): Use prototype, not K&R-style definition.
(vstrtoimax): Renamed from xstrtol (to avoid confusion with xstrtol
in ../lib), with type change to intmax_t.
All uses changed.
(vstrtoumax): Renamed from xstrtoul, with type change to uintmax_t.
All uses changed.
(vstrtod): Renamed from xstrtod.  All uses changed.
(print_direc): Use boolean arg instead of special value to indicate
a missing precision or width.  LENGTH no longer includes
length modifiers or conversion character.  New arg CONVERSION
now specifies conversion character.
Use intmax_t-width formatting for integers (like Bash).
Add support for C99 %a, %A, %F (like Bash).
Add support for field width with %c (POSIX requires this).
Add a FIXME for lack of support for field width and precision
for %b.
Add support for '\'', '0' flags.
Check for invalid combinations of flags, field width, precision,
and conversion, to prevent use of undefined behavior.
Allow multiple length modifiers, for formats like "%lld" (like Bash).
Add support for C99 'j', 't', 'z' length modifiers (like Bash).
In error message, output entire invalid conversion specification,
instead of merely outputting % followed by the conversion char.

20 years ago*** empty log message ***
Jim Meyering [Wed, 7 Jul 2004 15:54:54 +0000 (15:54 +0000)]
*** empty log message ***

20 years agoDon't infloop when MAXSYMLINKS is not defined.
Jim Meyering [Wed, 7 Jul 2004 15:54:51 +0000 (15:54 +0000)]
Don't infloop when MAXSYMLINKS is not defined.
Detect symlink loops much earlier (albeit lazily) on systems
with MAXSYMLINKS defined to a large value.

Include "cycle-check.h".
(canonicalize_filename_mode): Don't try to detect loops by counting
symlink-hops.  Instead, use the cycle-check module.

20 years agoInclude stdbool.h.
Jim Meyering [Wed, 7 Jul 2004 15:07:08 +0000 (15:07 +0000)]
Include stdbool.h.
Forward-declare `struct stat'.

20 years ago*** empty log message ***
Jim Meyering [Wed, 7 Jul 2004 09:28:24 +0000 (09:28 +0000)]
*** empty log message ***

20 years ago(canonicalize_filename_mode): Remove do-while(0) loop.
Jim Meyering [Wed, 7 Jul 2004 09:28:15 +0000 (09:28 +0000)]
(canonicalize_filename_mode): Remove do-while(0) loop.
Replace each corresponding `break' stmt with `continue'.

20 years ago.
Jim Meyering [Tue, 6 Jul 2004 17:30:29 +0000 (17:30 +0000)]
.

20 years ago.
Jim Meyering [Tue, 6 Jul 2004 17:00:53 +0000 (17:00 +0000)]
.

20 years agoInclude "stat-macros.h".
Jim Meyering [Tue, 6 Jul 2004 17:00:36 +0000 (17:00 +0000)]
Include "stat-macros.h".
(canonicalize_filename_mode): Remove #ifdef S_ISLNK, now that
S_ISLNK is guaranteed to be defined (via stat-macros.h).

20 years ago*** empty log message ***
Jim Meyering [Tue, 6 Jul 2004 16:56:30 +0000 (16:56 +0000)]
*** empty log message ***

20 years ago(libfetish_a_SOURCES): Add canonicalize.c unconditionally.
Jim Meyering [Tue, 6 Jul 2004 16:56:21 +0000 (16:56 +0000)]
(libfetish_a_SOURCES): Add canonicalize.c unconditionally.

20 years ago(canonicalize_mode_t): New type.
Jim Meyering [Tue, 6 Jul 2004 16:55:40 +0000 (16:55 +0000)]
(canonicalize_mode_t): New type.

20 years agoInclude "file-type.h".
Jim Meyering [Tue, 6 Jul 2004 16:55:26 +0000 (16:55 +0000)]
Include "file-type.h".
(canonicalize_filename_mode): New function, based on
canonicalize_file_name, supports three canonicalize modes.
(canonicalize_file_name)
[!HAVE_CANONICALIZE_FILE_NAME && !HAVE_RESOLVEPATH]: Use it.

20 years ago*** empty log message ***
Jim Meyering [Tue, 6 Jul 2004 16:17:25 +0000 (16:17 +0000)]
*** empty log message ***

20 years ago(AC_FUNC_CANONICALIZE_FILE_NAME): Do not add canonicalize.c here.
Jim Meyering [Tue, 6 Jul 2004 16:17:10 +0000 (16:17 +0000)]
(AC_FUNC_CANONICALIZE_FILE_NAME): Do not add canonicalize.c here.

20 years ago*** empty log message ***
Jim Meyering [Tue, 6 Jul 2004 16:16:01 +0000 (16:16 +0000)]
*** empty log message ***

20 years ago(readlink invocation): Document new
Jim Meyering [Tue, 6 Jul 2004 16:15:45 +0000 (16:15 +0000)]
(readlink invocation): Document new
"readlink -f" behaviour and new canonicalize options, -e and -m.

20 years ago.
Jim Meyering [Tue, 6 Jul 2004 16:14:45 +0000 (16:14 +0000)]
.

20 years agorenamed from ../misc/readline
Jim Meyering [Tue, 6 Jul 2004 16:14:40 +0000 (16:14 +0000)]
renamed from ../misc/readline

20 years ago.
Jim Meyering [Tue, 6 Jul 2004 16:14:19 +0000 (16:14 +0000)]
.

20 years agoFrom Dmitry V. Levin
Jim Meyering [Tue, 6 Jul 2004 16:14:15 +0000 (16:14 +0000)]
From Dmitry V. Levin

20 years ago(SUBDIRS): Add readlink.
Jim Meyering [Tue, 6 Jul 2004 16:13:31 +0000 (16:13 +0000)]
(SUBDIRS): Add readlink.

20 years ago(AC_CONFIG_FILES): Add tests/readlink/Makefile.
Jim Meyering [Tue, 6 Jul 2004 16:13:17 +0000 (16:13 +0000)]
(AC_CONFIG_FILES): Add tests/readlink/Makefile.

20 years ago(TESTS): Remove basic readlink test.
Jim Meyering [Tue, 6 Jul 2004 16:13:01 +0000 (16:13 +0000)]
(TESTS): Remove basic readlink test.

20 years agorenamed to ../readlink/rl-1
Jim Meyering [Tue, 6 Jul 2004 16:12:39 +0000 (16:12 +0000)]
renamed to ../readlink/rl-1

20 years agoChange "readlink -f" to be more compatible with prior implementations.
Jim Meyering [Tue, 6 Jul 2004 16:11:03 +0000 (16:11 +0000)]
Change "readlink -f" to be more compatible with prior implementations.
Add more canonicalize options, -e and -m.
Add comprehensive tests for all readlink modes.

(longopts): Add new options.
(usage): Document them.
(canonicalize_fname): New proxy function.
(main): Handle new options.

20 years ago*** empty log message ***
Jim Meyering [Mon, 5 Jul 2004 08:41:43 +0000 (08:41 +0000)]
*** empty log message ***

20 years ago(path_concat): Improve comment. From Paul Eggert.
Jim Meyering [Mon, 5 Jul 2004 08:41:13 +0000 (08:41 +0000)]
(path_concat): Improve comment.  From Paul Eggert.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 2004 20:14:52 +0000 (20:14 +0000)]
*** empty log message ***

20 years ago(mempcpy): Don't define if a system header defines it.
Jim Meyering [Sun, 4 Jul 2004 20:14:44 +0000 (20:14 +0000)]
(mempcpy): Don't define if a system header defines it.
Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
(longest_relative_suffix): New function.
(path_concat): Use it.  Assume first argument is not NULL.
Port to DOS.  Omit redundant separators.
Report an error instead of returning NULL.
Use mempcpy instead of memcpy.
(xpath_concat): Remove: not declared or used.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 2004 18:13:02 +0000 (18:13 +0000)]
*** empty log message ***

20 years ago(copy_internal): Add a FIXME comment.
Jim Meyering [Sun, 4 Jul 2004 18:12:55 +0000 (18:12 +0000)]
(copy_internal): Add a FIXME comment.

20 years ago(canonicalize_file_name): Assume that path_concat never returns NULL.
Jim Meyering [Sun, 4 Jul 2004 18:03:07 +0000 (18:03 +0000)]
(canonicalize_file_name): Assume that path_concat never returns NULL.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 2004 18:01:56 +0000 (18:01 +0000)]
*** empty log message ***

20 years ago(main): Don't pass NULL first argument to path_concat.
Jim Meyering [Sun, 4 Jul 2004 18:01:04 +0000 (18:01 +0000)]
(main): Don't pass NULL first argument to path_concat.
This cleans up the semantics a bit, as we no longer try to open the
same file twice.

20 years ago(movefile): Assume path_concat returns non-NULL.
Jim Meyering [Sun, 4 Jul 2004 17:47:29 +0000 (17:47 +0000)]
(movefile): Assume path_concat returns non-NULL.

20 years ago(do_copy): Assume path_concat returns non-NULL.
Jim Meyering [Sun, 4 Jul 2004 17:47:09 +0000 (17:47 +0000)]
(do_copy): Assume path_concat returns non-NULL.
(make_path_private): 2nd arg is now size_t, not int,
to avoid problem when path_concat dir name is longer than 2 GiB (!).

20 years ago(copy_dir): Assume path_concat returns non-NULL.
Jim Meyering [Sun, 4 Jul 2004 17:46:17 +0000 (17:46 +0000)]
(copy_dir): Assume path_concat returns non-NULL.

20 years ago*** empty log message ***
Jim Meyering [Sun, 4 Jul 2004 17:44:24 +0000 (17:44 +0000)]
*** empty log message ***

20 years ago(gl_PATH_CONCAT): Don't require gl_AC_DOS, the
Jim Meyering [Sun, 4 Jul 2004 17:44:17 +0000 (17:44 +0000)]
(gl_PATH_CONCAT): Don't require gl_AC_DOS, the
prerequisite modules now handle the DOS stuff.
Don't check for unistd.h.

20 years ago.
Jim Meyering [Fri, 2 Jul 2004 17:02:32 +0000 (17:02 +0000)]
.

20 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jul 2004 17:02:20 +0000 (17:02 +0000)]
*** empty log message ***

20 years ago(Common options, Target directory, cp invocation,
Jim Meyering [Fri, 2 Jul 2004 17:02:15 +0000 (17:02 +0000)]
(Common options, Target directory, cp invocation,
install invocation, mv invocation, ln invocation): Add -t as a
short option for --target-directory, and -T as a short option for
--no-target-directory.  Clean up relevant synopses a bit, so that
the language is similar for all.

20 years ago.
Jim Meyering [Fri, 2 Jul 2004 17:01:30 +0000 (17:01 +0000)]
.

20 years agoAdd short names -t and -T for --target-directory
Jim Meyering [Fri, 2 Jul 2004 17:00:53 +0000 (17:00 +0000)]
Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

(NO_TARGET_DIRECTORY_OPTION, TARGET_DIRECTORY_OPTION):
Remove.  All uses changed to 'T' and 't', respectively.

(long_options, main, usage): Add -t and -T as
aliases for --target-directory and --no-target-directory,
respectively.

20 years agoAdd short names -t and -T for --target-directory
Jim Meyering [Fri, 2 Jul 2004 17:00:10 +0000 (17:00 +0000)]
Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

(NO_TARGET_DIRECTORY_OPTION, TARGET_DIRECTORY_OPTION):
Remove.  All uses changed to 'T' and 't', respectively.

(long_opts, usage, do_copy, main): Add -t and -T as
aliases for --target-directory and --no-target-directory,
respectively.

20 years ago * NEWS: Add short names -t and -T for --target-directory
Jim Meyering [Fri, 2 Jul 2004 16:59:41 +0000 (16:59 +0000)]
* NEWS: Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

20 years ago.
Jim Meyering [Fri, 2 Jul 2004 16:34:40 +0000 (16:34 +0000)]
.

20 years agoPut the right amount of space at sentence ends.
Jim Meyering [Fri, 2 Jul 2004 16:29:50 +0000 (16:29 +0000)]
Put the right amount of space at sentence ends.
Make sure "i.e." and "e.g." are followed by commas (the GNU style).
Put blank lines before and after every @example, prefer the
previous line to end in ":" (when not a sentence end, for consistency),
and prepend @noindent to the following line when appropriate.
In examples, use "--" arguments when needed to prevent undesired
interpretation of operands as options.
Use "file name" rather than "filename", as per the GNU coding standards.
Remove unwanted spaces before @footnote.
Use "---" when appropriate, instead of " -- ".
Use "name" (or something like that) rather than "path" or "pathname",
since the GNU coding standards don't allow "path".
Use @acronym, @command, @minus{}, @samp in a few places,
where appropriate.
(Target directory): Clarify description of example.
(fmt invocation): Give issue number for reference, and reword
for clarity.
(sort invocation): Note that xargs without -0 also mishandles
file names containing some special characters other than newline.
(Translating): Mention that \012 is not universally portable.
Use '\0' rather than '\000'.
(Squeezing): bourne -> Bourne.
Fix unportable usage of '\n' by replacing it with '[\n*]'.
(More details about version sort): Remove unnecessary indent
in examples.
(dd invocation): Use 'kill -s USR1', not 'kill -USR1', as POSIX
indicates that the former is more portable (the latter is an XSI
extension).
(shred invocation): Use @uref rather than @url, and use a more-typical
style for the date.
(kill invocation): Clarify usage; for example, "kill -s TERM -1"
isn't allowed.
(seq invocation): Reword to avoid implying that printf necessarily
fails for numbers outside the 32-bit range.  Prefer separating
options from their operands.
(Opening the software toolbox): Give an online reference to
Robbins's article, and give a date.  Don't imply that the
current documentation is unchanged from his article.
(Putting the tools together): Rework examples so that they don't
assume the C locale; nowadays many users now operate outside the C
locale by default.  While we're at it, don't assume ASCII either.
Indent example to match actual output from GNU uniq.  Remove some
unnecessary and confusing brackets from 'tr' operands.  "Software
Tools in Pascal" is back in print, according to Amazon anyway.
Add references to Kernighan's online copies of examples.

20 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jul 2004 15:18:46 +0000 (15:18 +0000)]
*** empty log message ***

20 years agoFail upon use of @url. Use @uref instead.
Jim Meyering [Fri, 2 Jul 2004 15:18:43 +0000 (15:18 +0000)]
Fail upon use of @url.  Use @uref instead.

20 years ago*** empty log message ***
Jim Meyering [Fri, 2 Jul 2004 15:14:44 +0000 (15:14 +0000)]
*** empty log message ***

20 years ago(check-texinfo): Fail if a @footnote directive follows non-punctuation.
Jim Meyering [Fri, 2 Jul 2004 15:13:42 +0000 (15:13 +0000)]
(check-texinfo): Fail if a @footnote directive follows non-punctuation.

20 years ago(check-texinfo): Disallow `filename' in .texi files.
Jim Meyering [Fri, 2 Jul 2004 15:05:40 +0000 (15:05 +0000)]
(check-texinfo): Disallow `filename' in .texi files.

20 years agoChange `filesystem' to `file system' in a comment.
Jim Meyering [Wed, 30 Jun 2004 22:51:11 +0000 (22:51 +0000)]
Change `filesystem' to `file system' in a comment.

20 years ago*** empty log message ***
Jim Meyering [Wed, 30 Jun 2004 22:50:18 +0000 (22:50 +0000)]
*** empty log message ***

20 years ago.
Jim Meyering [Wed, 30 Jun 2004 22:47:26 +0000 (22:47 +0000)]
.