Jim Meyering [Thu, 5 Dec 1996 03:13:33 +0000 (03:13 +0000)]
(main) [!POSIXLY_CORRECT]: Allow the identity mappings:
[:upper:] to [:upper:] and [:lower:] to [:lower:].
(main) [POSIXLY_CORRECT]: Give a more specific diagnostic for the
identity mappings [:upper:] to [:upper:] and [:lower:] to [:lower:].
(class_ok): Update table to reflect that tr now allows these
identity mappings.
Jim Meyering [Tue, 3 Dec 1996 02:33:09 +0000 (02:33 +0000)]
(print_color_indicator): Check the file's suffix only
if it's a regular file.
(print_type_indicator): Use S_IXUGO instead of writing out
(S_IEXEC | S_IXGRP | S_IXOTH).
(length_of_file_name_and_frills): Likewise.
Jim Meyering [Sun, 1 Dec 1996 19:15:03 +0000 (19:15 +0000)]
(date): Interpret the date, L/M/N, as YYYY/MM/DD
if L >= 1000, otherwise as MM/DD/YY. With this change,
date --date=DATE accepts dates like those in an RCS log listing.
Jim Meyering [Thu, 28 Nov 1996 23:50:13 +0000 (23:50 +0000)]
(find_mount_point): Use strip_trailing_slashes and dirname
instead of open-coding them. When given FILE containing no slashes,
chdir to the directory containing it (the current directory) rather
than to `..'.
Jim Meyering [Thu, 28 Nov 1996 19:35:33 +0000 (19:35 +0000)]
(find_mount_point): Use save_cwd/restore_cwd.
"save-cwd.h": New include.
(show_dev): Deal with null values for DISK and FSTYPE,
including interpreting special 0 errno return from get_fs_usage.
(show_point): Don't fail if we can't find a mount entry for POINT,
just call show_dev with 0 values and let it fail if necessary.
(main): Require a non-zero MOUNT_LIST only if showing all filesystems.
(find_mount_point): New function.
(xgetcwd): New declaration.
Jim Meyering [Mon, 25 Nov 1996 03:07:52 +0000 (03:07 +0000)]
(set_ordering): Revert 1994-05-04 change to this function
so that blanks are not unconditionally ignored when computing start
and end positions for numeric keys. Reported by Markus Demleitner.
Jim Meyering [Sun, 24 Nov 1996 18:06:35 +0000 (18:06 +0000)]
(get_win_size): Take a FILENO parameter rather than
trying to get a size from both stdin and stdout.
Update callers.
Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
Jim Meyering [Sat, 23 Nov 1996 02:32:10 +0000 (02:32 +0000)]
(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.
Jim Meyering [Tue, 5 Nov 1996 04:38:41 +0000 (04:38 +0000)]
Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
[ENAMETOOLONG] (xgethostname): If gethostname
returns an error other than buffer overflow, exit with an error
message instead of allocating infinite amounts of space.
[!EXIT_FAILURE] (EXIT_FAILURE): New macro.
<errno.h>: New include.
[!errno] (errno): New declaration.