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
Jim Meyering
c4384e7af5
*** empty log message ***
2003-01-14 16:23:03 +00:00
Jim Meyering
642bc1acfb
(gobble_file): Fix a bug introduced in 4.5.4 that made it
...
so that ls --color would no longer highlight the names of files with
the execute bit set when not specified on the command line.
Patch by Michael Stone. Reported by Stephen Depooter as
Debian bug 175135.
2003-01-14 16:22:55 +00:00
Jim Meyering
0c28dd9808
*** empty log message ***
2003-01-14 16:20:54 +00:00
Jim Meyering
caf5671edc
factor a little
2003-01-14 16:19:09 +00:00
Jim Meyering
fb056f448a
duh: close file handle
2003-01-14 15:50:18 +00:00
Jim Meyering
6c1ccdaf7f
(color-exe): New test, for the above fix.
2003-01-14 15:38:23 +00:00
Jim Meyering
a5c0405752
fix typo in comment
2003-01-14 15:10:41 +00:00
Jim Meyering
0568a21a8d
*** empty log message ***
2003-01-14 15:09:00 +00:00
Jim Meyering
cbe7e9daec
(same_name): Declare *_basename locals to be `const'.
...
Consolidate declarations and initializations of *_base* locals.
2003-01-14 15:07:24 +00:00
Jim Meyering
ee45aa56cb
*** empty log message ***
2003-01-14 14:44:33 +00:00
Jim Meyering
cbf24b40e3
(same_name): Reorder tests so as to avoid calling stat()
...
when a string comparison is sufficient.
2003-01-14 14:44:29 +00:00
Jim Meyering
72bca87dba
*** empty log message ***
2003-01-14 14:15:44 +00:00
Jim Meyering
0e87cb139e
(readtoken): Cast character to 'unsigned char', not 'unsigned int'.
2003-01-14 14:15:37 +00:00
Jim Meyering
ff0e20e30e
*** empty log message ***
2003-01-14 12:58:27 +00:00
Jim Meyering
92602ead01
Merge in Ulrich's and my changes from libc.
2003-01-14 12:58:22 +00:00
Jim Meyering
7da8f5c488
*** empty log message ***
2003-01-13 15:33:43 +00:00
Jim Meyering
58c625df5d
*** empty log message ***
2003-01-13 15:33:17 +00:00
Jim Meyering
12cb8887bc
*** empty log message ***
2003-01-13 15:27:08 +00:00
Jim Meyering
495b91c2d1
*** empty log message ***
2003-01-13 13:44:14 +00:00
Jim Meyering
64977d2baa
Also test for just fixed bug with --zero.
2003-01-13 13:44:11 +00:00
Jim Meyering
ebc3717c9d
*** empty log message ***
2003-01-13 13:40:04 +00:00
Jim Meyering
cca0153946
*** empty log message ***
2003-01-13 13:39:44 +00:00
Jim Meyering
8355da5492
(long_opts): --zero does not require an argument.
...
Patch by Michael Stone.
2003-01-13 13:35:17 +00:00
Jim Meyering
01f012f2f5
*** empty log message ***
2003-01-12 18:29:54 +00:00
Jim Meyering
c5ee2230b0
*** empty log message ***
2003-01-12 18:29:32 +00:00
Jim Meyering
398ca04327
tweak comments
2003-01-12 18:16:31 +00:00
Jim Meyering
73bb03d0a6
*** empty log message ***
2003-01-12 18:03:52 +00:00
Jim Meyering
4e95cd2dff
Also work on systems that have `struct direct', using autoconf's AC_HEADER_DIRENT.
2003-01-12 18:03:48 +00:00
Jim Meyering
67b5ecf8ab
*** empty log message ***
2003-01-12 17:01:53 +00:00
Jim Meyering
376e889123
(ftw_startup): Rename local-shadowing local to pacify gcc.
2003-01-12 17:01:48 +00:00
Jim Meyering
cce1b15448
New file, from glibc/io.
2003-01-12 16:48:56 +00:00