summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-09-22Remove trailing blanks.Jim Meyering
2004-09-22Remove trailing blanks.Jim Meyering
2004-09-22remove trailing blankJim Meyering
2004-09-22(decode_switches): Don't compare a short valuePaul Eggert
to SIZE_MAX: GCC sometimes complains.
2004-09-21Remove unused "case 0".Paul Eggert
2004-09-21(main): Remove unused "case 0".Paul Eggert
(verbose): Now bool, not int. (VERBOSE_OPTION): New enum. (longopts, main): Use it.
2004-09-21Don't include "long-options.h".Paul Eggert
2004-09-21Don't include "long-options.h".Paul Eggert
(main): Remove unused "case 0".
2004-09-21(longopts): Add --help, --version.Paul Eggert
(main): Use longopts rather than parse_long_options. Don't include "long-options.h".
2004-09-21(longopts): Add --help, --version.Paul Eggert
(main): Use longopts rather than parse_long_options. (main): Don't reorder arguments, so that we can check weird file names.
2004-09-21Remove unused "case 0".Paul Eggert
(long_opts): Standardize on NULL vs 0.
2004-09-21(main): Remove unused "case 0".Paul Eggert
(long_options): Standardize on NULL vs 0.
2004-09-21Remove now-unused long-options static var.Paul Eggert
(main): Use getopt where it suffices, not getopt_long.
2004-09-21(main): Use getopt where it suffices, not getopt_long.Paul Eggert
2004-09-21Reject unknown options.Paul Eggert
2004-09-21Reject unknown options.Paul Eggert
2004-09-21Include <getopt.h>.Paul Eggert
(main): Use getopt where it suffices, not getopt_long.
2004-09-21Include <getopt.h>.Paul Eggert
(main): Reject unknown options.
2004-09-21Include <getopt.h>.Paul Eggert
(main): Reject unknown options.
2004-09-20(main): Don't dump core if POSIXLY_CORRECT and given no arguments.Paul Eggert
2004-09-19(STRING_OPTION): Remove.Paul Eggert
(long_options, main): Remove support for undocumented and obsolete --string option, as suggested in the 1996-09-26 patch.
2004-09-19(STATUS_OPTION, STRING_OPTION): New enums.Paul Eggert
(long_options, main): Use them instead of magic numbers 2 and 1. For --string, optarg can't possibly be NULL.
2004-09-19(usage): Distinguish between options and operands.Paul Eggert
(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(main): Usage failure is EXIT_FAIL, not EXIT_FAILURE.Paul Eggert
2004-09-19Fix typo in previous change.Paul Eggert
2004-09-19(main): Reject unknown options instead ofPaul Eggert
interpreting them as a directory to chroot to.
2004-09-19Remove obsolete comment about POSIX 1003.2/D11.2.Paul Eggert
The current standard (POSIX 1003.1-2004) is correct. (crc_remainder) [defined CRCTAB]: Renamed from "remainder" to avoid collision with builtin function. (main) [defined CRCTAB]: Output in lowercase hexadecimal, and output the first 0 as 8 digits, to make it easier to compare to the text of the standard. Output crctab to be a const array. (crctab): Use result of above changes. (long_options): Remove; not needed if empty. (main): getopt_long can't return 0 here, so simplify the code.
2004-09-13Regenerate.Paul Eggert
2004-09-13(localedir.h): Don't redirect directly to target.Paul Eggert
2004-09-13Adjust to backup enum rename.Paul Eggert
2004-09-13Adjust to backup file rename.Paul Eggert
2004-09-13Adjust to backup enum rename.Paul Eggert
2004-09-13(print_full_info): Don't exit with failure status simplyPaul Eggert
because a user or group number can't be turned into a name.
2004-09-10(parse_obsolete_option): Renamed fromPaul Eggert
parse_obsolescent_option, since the options are obsolete now. Remove bool *arg; just exit if there's an error. Revamp to follow POSIX 1003.2-1992 more precisely, to handle cases like "tail - file" and "tail -10 -- file" correctly when we are conforming to the older standard. (main): Adjust to this change.
2004-09-09(usage): Document -r, -w, -x more carefully.Paul Eggert
2004-09-09(usage): Mention that -h and -L don't dereference.Paul Eggert
2004-09-09(usage): Document "test" (with no args) and "[ ]".Paul Eggert
2004-09-09(main): Don't reorder options.Paul Eggert
2004-09-07(main): Fix POSIX-conformance bug: "touch --Paul Eggert
MMDDhhmm file" must be treated like "touch MMDDhhmm file" when conforming to pre-2001 POSIX.
2004-09-07(main): Emulate Solaris 8 and 9 "sort -y", so thatPaul Eggert
"sort -y abc" is like "sort abc" whereas "sort -y 100" is like plain "sort".
2004-09-06Several changes for POSIX and FreeBSD compatibility.Paul Eggert
(COMMON_SHORT_OPTIONS): Add -B, -D, -e, -F, -H, -I, -L, -O, -s, -X. (long_options, main): --strings is now -S, not -s. (usage): Reflect the usage changes. (parse_old_offset): Do not issue a diagnostic on failure; callers now do this as necessary. (main): Support POSIX syntax. Remove unused case 0 from getopt_long. Add support for new short options (many undocumented) for compatibility with FreeBSD. Remove FIXME for -s; it's now POSIX-compatible. Default format is now oS, not o2.
2004-09-06Sort options in usage message.Paul Eggert
2004-09-05(recover_mode): Arg is now char const *, not char *.Paul Eggert
(main): Use STDIN_FILENO, not 0. Simplify option-parsing code a tad.
2004-09-05(valid_options): Remove.Paul Eggert
(main): Fix some bugs in handling invalid option-combinations like "stty -F".
2004-09-05Regenerate.Paul Eggert
2004-09-03(HAVE_STRUCT_STATXFS_F_TYPE): Fix typo that preventedPaul Eggert
it from ever being nonzero. Reported by Pozsar Balazs in: http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00189.html (human_fstype): Add ramfs, squashfs, sysfs. Reported by Pozsar Balazs in: http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00188.html (human_fstype): Return char const *, not char *. Simplify internals a bit, and avoid casts.
2004-09-03(usage): "alternated EBCDIC" -> "alternate EBCDIC".Paul Eggert
(bit_count): Remove. All uses changed to.... (multiple_bits_set): New function. (scanargs): Use it, and check separately for each set of incompatible options, to improve diagnostics. (MX): Remove. (apply_translations): Move checks for incompatible options to scanargs, so that they're done consistently.
2004-09-03Output correct errno-related diagnostic on "paste" I/O errors.Paul Eggert
(write_error, xputchar): New functions. (paste_parallel): Use correct errno value after input error. (paste_parallel, paste_serial): Report errno value after output error.
2004-09-03(paste_parallel): Improve replacement for ENDLIST and CLOSED.Paul Eggert
2004-09-02(dummy_closed, CLOSED, dummy_endlist, ENDLIST): Remove;Paul Eggert
it's not portable C to assume FILE is a complete type. (paste_parallel): Use null instead of ENDLIST, and an explicit boolean instead of CLOSED.