Commit Graph
15857 Commits
Author SHA1 Message Date
Jim Meyering ae5862eecf *** empty log message *** 2003-01-20 15:06:38 +00:00
Jim Meyering ff5b51afdd (mail_gpg_sign_cookie): Remove now-unused definition. 2003-01-20 15:06:28 +00:00
Jim Meyering 787138d638 *** empty log message *** 2003-01-20 15:04:56 +00:00
Jim Meyering 01dfd68984 From GNU libc.
(my_strftime): Handle very large width
specifications for numeric values correctly.  Improve checks for
overflow.
2003-01-20 15:04:51 +00:00
Jim Meyering 3fa2b8a8eb *** empty log message *** 2003-01-20 15:03:12 +00:00
Jim Meyering 7565faca35 Merge in changes from libc
Eliminate many `#ifdef USE_IN_LIBIO' conditionals.
2003-01-20 15:03:04 +00:00
Jim Meyering 73af65ef56 Include config.h.
Add copyright.
2003-01-19 16:42:45 +00:00
Jim Meyering 1fab123c3c *** empty log message *** 2003-01-19 16:14:47 +00:00
Jim Meyering 17c68905a0 Include "canonicalize.h". 2003-01-19 16:14:41 +00:00
Jim Meyering 8e5aabe259 duh. fix typo 2003-01-19 16:06:13 +00:00
Jim Meyering 56b3c75e63 (widen) [COMPILE_WIDE]: Merge nearly-identical definitions.
(nl_get_alt_digit) [! defined my_strftime]: Define.
(my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
_nl_get_alt_digit and _nl_get_walt_digit.
2003-01-19 13:01:35 +00:00
Jim Meyering 7c9bd0e59c (my_strftime): Merge in locale-related changes from libc.
These changes have no effect outside of _LIBC.
2003-01-19 11:51:32 +00:00
Jim Meyering eb5cd04ce2 *** empty log message *** 2003-01-19 08:52:25 +00:00
Jim Meyering 2a5b4f1761 (Which files are listed): Document new option:
--dereference-command-line-symlink-to-dir.
2003-01-19 08:52:20 +00:00
Jim Meyering 825c8d1155 *** empty log message *** 2003-01-18 18:36:17 +00:00
Jim Meyering cdb4bba0e6 (Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]: New member.
(enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
(long_options): Add option --dereference-command-line-symlink-to-dir.
(main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
-d, -F, -l options is specified.
(decode_switches): Handle --dereference-command-line-symlink-to-dir.
(gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
Change --dereference-command-line (-H) to dereference *all*
command line arguments, including broken symlinks.
2003-01-18 18:36:13 +00:00
Jim Meyering be33a434cb reflect change in how ls -H works 2003-01-18 18:06:38 +00:00
Jim Meyering ba2b351bbf Change ls -H back to the way it was yesterday, since this is
compatible with FreeBSD and the POSIX spec is confusing
and somewhat contradictory.

(DEREF_COMMAND_LINE_ARGUMENTS): Change name back
from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
(long_options): Change the long option name back.
(usage): Change the usage back.
(gobble_file): When -H is specified, dereference a top-level
arg even if it points to a non-directory.
2003-01-18 18:01:51 +00:00
Jim Meyering f0110096ac ls [4.1.1]: Mention that --dereference-command-line (-H) is now the default,
unless one of the -d, -F, or -l options are given.
From Paul Eggert
2003-01-18 08:41:06 +00:00
Jim Meyering 328b32a49d . 2003-01-17 15:14:21 +00:00
Jim Meyering d615969812 update from automake/lib 2003-01-17 14:53:19 +00:00
Jim Meyering 308e04e326 . 2003-01-16 22:28:13 +00:00
Jim Meyering d3e2cd0783 *** empty log message *** 2003-01-16 19:03:42 +00:00
Jim Meyering 060c09c357 *** empty log message *** 2003-01-16 19:02:49 +00:00
Jim Meyering 496cd263e7 (Which files are listed, General output formatting): Undo last change. 2003-01-16 19:01:56 +00:00
Jim Meyering 86c7ef826a move prerequisites to precede AC_CACHE_CHECK 2003-01-16 18:23:18 +00:00
Jim Meyering a578d7d8e9 *** empty log message *** 2003-01-16 17:34:04 +00:00
Jim Meyering ba53003e9f The `regex' struct is both input and output.
Initialize it before each use.  Patch by Tim Waugh.
2003-01-16 17:33:52 +00:00
Jim Meyering 950fed888a rename variable 2003-01-15 21:12:19 +00:00
Jim Meyering d7d13fa5c2 Add tsearch.o IFF we have to use the replacement ftw.c. 2003-01-15 21:11:27 +00:00
Jim Meyering d24ceb3b32 Check for declaration of stpcpy. 2003-01-15 17:32:13 +00:00
Jim Meyering a2c75df256 *** empty log message *** 2003-01-15 13:11:31 +00:00
Jim Meyering a1850bde1a *** empty log message *** 2003-01-15 13:09:04 +00:00
Jim Meyering 0ba481441f (General output formatting): Reflect option name change:
s/--dereference-command-line/--dereference-command-line-symlink-to-dir/.
Say that this option changes how ls treats only symlinks to directories
specified on the command line.
2003-01-15 13:09:00 +00:00
Jim Meyering 23b5ef6146 *** empty log message *** 2003-01-15 12:24:54 +00:00
Jim Meyering e1f1be8559 *** empty log message *** 2003-01-15 12:24:04 +00:00
Jim Meyering 3786638a49 *** empty log message *** 2003-01-15 12:23:34 +00:00
Jim Meyering ea4d81f366 . 2003-01-15 12:14:38 +00:00
Jim Meyering 3e2ec9890b Require AC_FUNC_FTW. 2003-01-15 12:14:29 +00:00
Jim Meyering ddd1b52c1c . 2003-01-15 12:13:34 +00:00
Jim Meyering 800f3a1e77 (gobble_file): Fall back on using lstat when required:
when --dereference (-L) is not specified, and
- when operating on a dangling symlink
- when operating on command-line-symlink-to-directories
This fixes numerous problems.  Here are examples:
- `ls dangling-symlink' would fail with `no such file...'
Now it prints `dangling-symlink'.
- `ls -i symlink' would mistakenly print the inode of the referent.
Now it prints the inode of the symlink.  Likewise for --size (-s).
Based on a patch from Michael Stone.
Reported by Deepak Goel as Debian bug #173793.
2003-01-15 11:59:07 +00:00
Jim Meyering b1ebf2a383 *** empty log message *** 2003-01-15 11:58:26 +00:00
Jim Meyering b6dcca8662 *** empty log message *** 2003-01-15 11:58:02 +00:00
Jim Meyering c4abcd5882 *** empty log message *** 2003-01-15 11:32:59 +00:00
Jim Meyering 5c68fbd9a3 Rename ls's --dereference-command-line (-H)
option to   --dereference-command-line-symlink-to-dir.

[enum Dereference_symlink]
(DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
DEREF_COMMAND_LINE_ARGUMENTS.  Update all uses.
(long_options): Rename the option.
(usage): Say that --dereference-... changes how ls treats
only symlinks to directories specified on the command line.
2003-01-15 11:32:47 +00:00
Jim Meyering 64a58d4cdd *** empty log message *** 2003-01-14 21:10:26 +00:00
Jim Meyering 78c9c2c7fa (TESTS): Add dangle and inode. 2003-01-14 21:10:12 +00:00
Jim Meyering 4d76e1e857 *** empty log message *** 2003-01-14 20:51:25 +00:00
Jim Meyering a57532aeac remove diff's -u 2003-01-14 19:04:28 +00:00
Jim Meyering fbc1a9a299 *** empty log message *** 2003-01-14 19:03:00 +00:00