Commit Graph
4720 Commits
Author SHA1 Message Date
Jim Meyering 3d19556081 Add .mpc as an audio suffix, too. 2004-10-12 16:58:51 +00:00
Jim Meyering 44ac21f970 Add .flac as an audio suffix. 2004-10-12 16:54:24 +00:00
Paul Eggert 677c71d285 (ignore_mode): Renamed from ignore, to avoid shadowing
problems.  All uses changed.
2004-10-05 17:38:15 +00:00
Jim Meyering 041c1bc62e remove trailing blanks. 2004-10-05 07:13:08 +00:00
Paul Eggert bcae12896c (NEW, OLD): Remove, partly to avoid
reference to obsolescent macro XMALLOC.
All uses replaced by xmalloc and free.
2004-10-05 06:33:53 +00:00
Paul Eggert be1d0e7285 Regenerate. 2004-10-04 04:12:53 +00:00
Jim Meyering ca4c25cccb (usage): Clarify: --retry works only with --follow=name.
Reported by Nik A. Melchior in http://bugs.debian.org/273781.
2004-09-28 06:34:22 +00:00
Paul Eggert 2001cde81e (format_address_paren): c is optional, so don't output it if it's '\0'. 2004-09-28 01:09:03 +00:00
Jim Meyering 2f8369c3bf . 2004-09-27 07:22:39 +00:00
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 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 8c8a0a972b Remove unused variable. 2004-09-26 07:10:53 +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 4f5ed75ee4 (main): Revamp option processing to support "chmod -r -w file". 2004-09-24 23:33:39 +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 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
Jim Meyering e04de0ce8e (struct dirstack_state) [current_arg_jumpbuf]: Improve the comment. 2004-09-22 20:13:09 +00:00
Jim Meyering b0a3bb7aed (enum) [ALG_MD5]: Define to be 1, not 0. 2004-09-22 20:11:10 +00:00
Jim Meyering 470e384363 (xalloc_die): Declare to be static. 2004-09-22 20:09:41 +00:00
Jim Meyering 1c6e93bd12 (remember_created): Declare as `extern'. 2004-09-22 20:09:09 +00:00
Jim Meyering e09b9a32bd (copy): Declare as `extern'. 2004-09-22 20:08:59 +00:00
Jim Meyering a399cd6876 (chown_files): Declare as `extern'. 2004-09-22 20:08:51 +00:00
Jim Meyering acb87bd31e . 2004-09-22 20:07:02 +00:00
Jim Meyering 3659726384 (check-AUTHORS): New rule.
(check): Depend on it.
2004-09-22 20:06:44 +00:00
Jim Meyering cce2236cbd Remove trailing blanks. 2004-09-22 20:00:58 +00:00
Jim Meyering 5414dae31f Remove trailing blanks. 2004-09-22 20:00:37 +00:00
Jim Meyering b4fb292a82 remove trailing blank 2004-09-22 19:59:20 +00:00
Paul Eggert 058d0dab92 (decode_switches): Don't compare a short value
to SIZE_MAX: GCC sometimes complains.
2004-09-22 19:47:38 +00:00
Paul Eggert 81ca57a91d Remove unused "case 0". 2004-09-21 22:26:42 +00:00
Paul Eggert 9873bd7eb6 (main): Remove unused "case 0".
(verbose): Now bool, not int.
(VERBOSE_OPTION): New enum.
(longopts, main): Use it.
2004-09-21 22:13:53 +00:00
Paul Eggert 26877d8d31 Don't include "long-options.h". 2004-09-21 22:13:13 +00:00
Paul Eggert 9fb20db0af Don't include "long-options.h".
(main): Remove unused "case 0".
2004-09-21 22:12:55 +00:00
Paul Eggert 1ccaf98c8c (longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
Don't include "long-options.h".
2004-09-21 22:12:13 +00:00
Paul Eggert 288994697f (longopts): Add --help, --version.
(main): Use longopts rather than parse_long_options.
(main): Don't reorder arguments, so that we can check weird file names.
2004-09-21 22:11:28 +00:00
Paul Eggert ca316df53c Remove unused "case 0".
(long_opts): Standardize on NULL vs 0.
2004-09-21 22:10:39 +00:00
Paul Eggert 31bf55d54c (main): Remove unused "case 0".
(long_options): Standardize on NULL vs 0.
2004-09-21 22:09:52 +00:00
Paul Eggert 4ef2590268 Remove now-unused long-options static var.
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:09:09 +00:00
Paul Eggert 3456364b8c (main): Use getopt where it suffices, not getopt_long. 2004-09-21 22:07:51 +00:00
Paul Eggert aa1ed28185 Reject unknown options. 2004-09-21 22:05:52 +00:00
Paul Eggert 6c9dc0efd9 Reject unknown options. 2004-09-21 22:05:27 +00:00
Paul Eggert b78d6f6d92 Include <getopt.h>.
(main): Use getopt where it suffices, not getopt_long.
2004-09-21 22:04:31 +00:00
Paul Eggert 4fa016cbc9 Include <getopt.h>.
(main): Reject unknown options.
2004-09-21 22:01:50 +00:00
Paul Eggert 0d219ee57d Include <getopt.h>.
(main): Reject unknown options.
2004-09-21 22:01:28 +00:00
Paul Eggert 82a84d38cb (main): Don't dump core if POSIXLY_CORRECT and given no arguments. 2004-09-20 06:32:10 +00:00
Paul Eggert 83100c448b (STRING_OPTION): Remove.
(long_options, main): Remove support for undocumented and
obsolete --string option, as suggested in the 1996-09-26 patch.
2004-09-19 16:52:50 +00:00
Paul Eggert fdac7ecb11 (STATUS_OPTION, STRING_OPTION): New enums.
(long_options, main): Use them instead of magic numbers 2 and 1.
For --string, optarg can't possibly be NULL.
2004-09-19 02:21:09 +00:00
Paul Eggert 701fdccca9 (usage): Distinguish between options and operands.
(scanargs): Don't mess with argc, argv; getopt_long handles this now.
Say "operands" for operands, not "options".
(main): Use getopt_long, so that "dd --" works as POSIX requires.
2004-09-19 01:46:09 +00:00
Paul Eggert 77f80f747e (main): Usage failure is EXIT_FAIL, not EXIT_FAILURE. 2004-09-19 01:07:46 +00:00
Paul Eggert b1d33bd46d Fix typo in previous change. 2004-09-19 01:02:30 +00:00
Paul Eggert 9f5c2a8415 (main): Reject unknown options instead of
interpreting them as a directory to chroot to.
2004-09-19 00:58:47 +00:00