From 98ebe281ad7b61ec648f5a4b719878bdf083fecf Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 26 Sep 2004 22:56:53 +0000 Subject: [PATCH] Add "ls --hide". --- ChangeLog | 21 ++++++++++++++++++++- doc/ChangeLog | 4 ++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5e4e6f2..8902bea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,26 @@ -2004-09-25 Paul Eggert +2004-09-26 Paul Eggert * Version 5.3.0. + Add support for ls --hide. Idea suggested by Bardur Arantsson. + * NEWS: Document this. + * src/ls.c (file_ignored): Renamed from file_interesting, with + inverted return value. Accept the file name, not a struct dirent *. + All uses changed. Avoid the expense of calling fnmatch if the + file is ignorable due to leading '.'. + (all_files, really_all_files): Removed; replaced by: + (ignore): New variable. All uses changed. + (IGNORE_DEFAULT, IGNORE_DOT_AND_DOTDOT, IGNORE_MINIMAL, HIDE_OPTION): + New constants. + (hide_patterns): New variable. + (long_options, decode_switches, file_ignored, usage): + Add support for --hide. + (patterns_match): New function. + (usage): Replace "hide" with "ignore" in explanation, to avoid + confusion. + +2004-09-25 Paul Eggert + * src/ls.c (gobble_file, print_long_format): Don't assume that human-readable output has a byte count equal to its column width; this isn't always true in locales where the radix character is not diff --git a/doc/ChangeLog b/doc/ChangeLog index bbf9373..8ee852f 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2004-09-26 Paul Eggert + + * coreutils.texi (ls invocation): Document "ls --hide". + 2004-09-24 Paul Eggert * coreutils.texi (chmod invocation): Warn about "chmod -w file". -- 2.7.4