Commit Graph
20330 Commits
Author SHA1 Message Date
Jim Meyering f05c57367e Use [[] in place of \[, since cvsu doesn't handle the latter,
and both cvs and cvsu handle the former.
2004-09-27 07:20:46 +00:00
Paul Eggert 98ebe281ad Add "ls --hide". 2004-09-26 22:56:53 +00:00
Paul Eggert 92b1470e88 Add "ls --hide".
(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-26 22:56:38 +00:00
Paul Eggert b7cffb8c5e (ls invocation): Document "ls --hide". 2004-09-26 22:56:04 +00:00
Paul Eggert 45bf776dee Add "ls --hide". 2004-09-26 22:55:05 +00:00
Paul Eggert 707dcca8f3 Fix location of "Version 5.3.0." 2004-09-26 07:29:15 +00:00
Paul Eggert 8c8a0a972b Remove unused variable. 2004-09-26 07:10:53 +00:00
Paul Eggert 9b7a56a161 * src/ls.c: Fix problem with multibyte decimal points in human-readable output. 2004-09-26 07:07:06 +00:00
Paul Eggert 1842a21b23 (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
'.' or ','.
(format_user_or_group): Revamp code to match the above fix;
this avoids the (very faint) possibility of integer overflow.
2004-09-26 07:06:07 +00:00
Paul Eggert d3781e4cb2 Regenerate 2004-09-24 23:38:43 +00:00
Paul Eggert cc4bf3499f "chmod -w file" doc 2004-09-24 23:35:13 +00:00
Paul Eggert 0b40dfd34f (TESTS): Add 'usage'. 2004-09-24 23:34:41 +00:00
Paul Eggert 83674d774d Initial revision 2004-09-24 23:34:07 +00:00
Paul Eggert 4f5ed75ee4 (main): Revamp option processing to support "chmod -r -w file". 2004-09-24 23:33:39 +00:00
Paul Eggert 6ca4627b99 (chmod invocation): Warn about "chmod -w file". 2004-09-24 23:33:13 +00:00
Paul Eggert 498719e7c6 chmod -r -w x fixes. 2004-09-24 23:32:52 +00:00
Paul Eggert 6b05d8254b Mention that "chmod -r -w x" now works as expected. 2004-09-24 23:32:37 +00:00
Jim Meyering ccda626d77 *** empty log message *** 2004-09-24 08:14:44 +00:00
Jim Meyering 0e31e894e6 . 2004-09-24 08:13:37 +00:00
Jim Meyering 2e4a50b9ee *** empty log message *** 2004-09-24 08:13:10 +00:00
Jim Meyering 0bec4a7a8c (CVS_LIST): Use --types=AFGM option so that
it lists only cvs-controlled regular files.
2004-09-24 08:13:02 +00:00
Paul Eggert f7dc51fab5 * modechange.c (mode_compile): Don't decrement past start of string. 2004-09-24 07:01:23 +00:00
Paul Eggert d7caebfe16 (mode_compile): Don't decrement a pointer that
points to the start of a string, as the C Standard says the
resulting behavior is undefined.
2004-09-24 07:00:59 +00:00
Jim Meyering ed37158ead *** empty log message *** 2004-09-24 06:58:46 +00:00
Jim Meyering 6e5759969f New file, used by rules in coreutils' Makefile.maint. 2004-09-24 06:58:38 +00:00
Jim Meyering eb5eb6fd7a *** empty log message *** 2004-09-24 06:42:47 +00:00
Jim Meyering 9b838f64c8 (xalloc_die): Declare to be extern', not static'
to avoid a warning from gcc-3.4.1.  Reported by Paul Eggert.
2004-09-24 06:34:43 +00:00
Paul Eggert 68e6b1cd3b * Makefile.maint (CVS_LIST): New macro. 2004-09-24 05:53:21 +00:00
Paul Eggert acb0c67d6a (CVS_LIST): New macro.
(sc_space_tab, sc_prohibit_atoi_atof, sc_file_system,
sc_prohibit_jm_in_m4, sc_system_h_headers, sc_sun_os_names,
sc_trailing_blank, po-check): Use it instead of the
nonstandard "cvsu --list".
2004-09-24 05:53:05 +00:00
Paul Eggert 666c12eaa4 Regenerate. 2004-09-23 20:31:42 +00:00
Paul Eggert 4bc5655bc3 New test case obs-b.
err-[134] no longer need _POSIX2_VERSION=199209.
Fix comments to match revised 'tail' behavior.
2004-09-23 20:30:54 +00:00
Paul Eggert 6834104df6 Add comments for tests/tail/Test.pm. 2004-09-23 20:29:57 +00:00
Paul Eggert 358ee6b153 (parse_obsolete_option): Bring back support
for obsolete option followed by non-obsolete, or by more
than one file.  When obsolete, conform to SUSv2 rather than
original POSIX 1003.2-1992, as SUSv2 corrected the case of
"tail -c".  Add support for the SUSv2 "b" modifier.
2004-09-23 20:28:10 +00:00
Paul Eggert aacd5ddd96 Fix obsolete "tail" option description. 2004-09-23 20:27:15 +00:00
Paul Eggert 9a9f80bc65 (tail invocation): Fix bugs in the description of
the obsolete syntax (e.g., it does not support -k or -m).  Warn
about usages like "tail -" and "tail -c 4" that are ambigous on
older systems.
2004-09-23 20:26:31 +00:00
Paul Eggert 4e2b20d9b7 More backward-compatibility fixes for "tail". 2004-09-23 20:25:38 +00:00
Paul Eggert 3e9f3d2755 Describe SUSv2 etc. tail fixes. 2004-09-23 20:24:52 +00:00
Jim Meyering eecd99d134 *** empty log message *** 2004-09-22 20:20:42 +00:00
Jim Meyering 639bc72cbf Remove lib/xmalloc.c.
Add +lib/xalloc-die.c.
2004-09-22 20:20:29 +00:00
Jim Meyering 4e98671f47 Use automake-1.9.2. Regenerate dependent files. 2004-09-22 20:19:35 +00:00
Jim Meyering cdcf84e644 *** empty log message *** 2004-09-22 20:19:10 +00:00
Jim Meyering c9461eac70 Use automake-1.9.2. Regenerate dependent files. 2004-09-22 20:18:41 +00:00
Jim Meyering ad803f1e3a Use automake-1.9.2. Regenerate dependent files. 2004-09-22 20:18:09 +00:00
Jim Meyering 745b7762a1 *** empty log message *** 2004-09-22 20:16:41 +00:00
Jim Meyering cc6fefeb09 Remove trailing blanks. 2004-09-22 20:16:38 +00:00
Jim Meyering b018a4495c Remove extraneous spaces before TAB. 2004-09-22 20:15:49 +00:00
Jim Meyering ea94d80627 *** empty log message *** 2004-09-22 20:14:48 +00:00
Jim Meyering 9258132a73 Remove trailing blank. 2004-09-22 20:14:25 +00:00
Jim Meyering 5a08ac2246 *** empty log message *** 2004-09-22 20:13:31 +00:00
Jim Meyering e04de0ce8e (struct dirstack_state) [current_arg_jumpbuf]: Improve the comment. 2004-09-22 20:13:09 +00:00