platform/upstream/coreutils.git
24 years ago(main): Call exit explicitly to avoid warning from gcc.
Jim Meyering [Sun, 29 Aug 1999 20:45:50 +0000 (20:45 +0000)]
(main): Call exit explicitly to avoid warning from gcc.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 20:42:42 +0000 (20:42 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 20:40:15 +0000 (20:40 +0000)]
*** empty log message ***

24 years agoRequire jm_BISON.
Jim Meyering [Sun, 29 Aug 1999 20:40:00 +0000 (20:40 +0000)]
Require jm_BISON.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 20:37:25 +0000 (20:37 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 20:35:16 +0000 (20:35 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 20:05:07 +0000 (20:05 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 19:54:09 +0000 (19:54 +0000)]
*** empty log message ***

24 years ago(relative_time_table): Change `type' of `THIS' from
Jim Meyering [Sun, 29 Aug 1999 14:55:24 +0000 (14:55 +0000)]
(relative_time_table): Change `type' of `THIS' from
tMINUTE_UNIT to tUNUMBER.  From Urs Thuermann.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 14:49:06 +0000 (14:49 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 14:46:35 +0000 (14:46 +0000)]
*** empty log message ***

24 years ago(test_vector): Add a test for the Risks-reported problem with `Nov 11 1996'.
Jim Meyering [Sun, 29 Aug 1999 14:46:25 +0000 (14:46 +0000)]
(test_vector): Add a test for the Risks-reported problem with `Nov 11 1996'.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Aug 1999 14:37:40 +0000 (14:37 +0000)]
*** empty log message ***

24 years ago(test_vector): Add tests for use of `this'.
Jim Meyering [Sun, 29 Aug 1999 14:36:48 +0000 (14:36 +0000)]
(test_vector): Add tests for use of `this'.

24 years ago(get_date): Rename latter local `tm' to probe_tm.
Jim Meyering [Sun, 29 Aug 1999 12:55:35 +0000 (12:55 +0000)]
(get_date): Rename latter local `tm' to probe_tm.

24 years ago(get_date): Rename outermost local `probe' to `quarter'.
Jim Meyering [Sun, 29 Aug 1999 12:28:56 +0000 (12:28 +0000)]
(get_date): Rename outermost local `probe' to `quarter'.

24 years agoAdd copyright notice.
Jim Meyering [Sun, 29 Aug 1999 07:29:51 +0000 (07:29 +0000)]
Add copyright notice.

(number): Handle `Nov 11 1996' example; see Risks Digest 20.55
http://catless.ncl.ac.uk/Risks/20.55.html#subj18
(1999-08-27)

(<stdio.h>): Include only if testing.
(ISUPPER): Remove.
(ISLOWER, PC): New macros.
(<string.h>): Include if HAVE_STRING_H, not USG.
(bcopy): Remove.
(yymaxdepth, ..., yycheck): Don't bother to redefine, since we assume
bison.
(EPOCH_YEAR): Renamed from EPOCH.
(table): Renamed from TABLE.
(meridian): Now an anonymous enum.
(struct parser_control): New type.
(YYLEX_PARAM, YYPARSE_PARAM, YYSTYPE): New macros.
(yyInput, ..., yyRelYear): Migrated into struct parser_control.
(%pure_parser): Added, so that the parser is pure.
(%union): Removed; the type is now just plain int.
All %type directives removed.
(tLOCAL_ZONE): New %token.
(month_day_table): Renamed from MonthDayTable.
(gmtime, localtime, mktime, time): Declare only if not defined.
(meridian_table): New table.
(dst_table): New table.
(units_table): renamed from UnitsTable.
(relative_time_table): Renamed from OtherTable.
(time_zone_table): Renamed from TimezoneTable.  Modernized data.
(military_table): Renamed from MilitaryTable.
(to_hour): Renamed from ToHour.
(to_year): Renamed from ToYear.
(lookup_zone): New function.
(LookupWord): Renamed from lookup_word.
Use lookup_zone for time zones.
(yylex): Now reentrant.  All callers changed.
(get_date): Add support for local time zone abbreviations.
Make it reentrant.

24 years ago*** empty log message ***
Jim Meyering [Wed, 25 Aug 1999 15:41:52 +0000 (15:41 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 16:28:45 +0000 (16:28 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 16:28:26 +0000 (16:28 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 16:23:28 +0000 (16:23 +0000)]
*** empty log message ***

24 years ago(detect_loop): There's no loop if k->top is NULL.
Jim Meyering [Sun, 22 Aug 1999 16:10:24 +0000 (16:10 +0000)]
(detect_loop): There's no loop if k->top is NULL.

24 years agoAdd a few more tests.
Jim Meyering [Sun, 22 Aug 1999 16:09:29 +0000 (16:09 +0000)]
Add a few more tests.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 15:58:28 +0000 (15:58 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 15:58:06 +0000 (15:58 +0000)]
*** empty log message ***

24 years agoRewrite to use Fetish.pm-based framework.
Jim Meyering [Sun, 22 Aug 1999 15:55:41 +0000 (15:55 +0000)]
Rewrite to use Fetish.pm-based framework.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 15:54:35 +0000 (15:54 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Sun, 22 Aug 1999 15:53:59 +0000 (15:53 +0000)]
.

24 years agotweak comment
Jim Meyering [Sun, 22 Aug 1999 11:34:56 +0000 (11:34 +0000)]
tweak comment

24 years ago(check_file): Explain why we have separate `if' and `else'
Jim Meyering [Sun, 22 Aug 1999 11:31:08 +0000 (11:31 +0000)]
(check_file): Explain why we have separate `if' and `else'
blocks when the code in the else block could handle both cases.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 11:17:47 +0000 (11:17 +0000)]
*** empty log message ***

24 years ago(check_file): Generate each line of output earlier,
Jim Meyering [Sun, 22 Aug 1999 11:17:42 +0000 (11:17 +0000)]
(check_file): Generate each line of output earlier,
when possible.  It is possible when using none of these options:
--count, -repeated, --all-repeated, --unique.
Based on a patch from Ian Turner.

(check_file): Move declarations of local variables into the scopes where used.
(min): Remove macro definition.
(different): Use MIN, not min.
(SWAP_LINES): New macro.
(check_file): Use it here.

24 years ago.
Jim Meyering [Sun, 22 Aug 1999 11:04:23 +0000 (11:04 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 11:03:57 +0000 (11:03 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 11:03:32 +0000 (11:03 +0000)]
*** empty log message ***

24 years agoEscape backslashes so tr's manual comes out right.
Jim Meyering [Sun, 22 Aug 1999 11:02:39 +0000 (11:02 +0000)]
Escape backslashes so tr's manual comes out right.
Reported by Andreas Schwab.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 10:58:31 +0000 (10:58 +0000)]
*** empty log message ***

24 years ago(ATTRIBUTE_NORETURN): Define.
Jim Meyering [Sun, 22 Aug 1999 10:57:51 +0000 (10:57 +0000)]
(ATTRIBUTE_NORETURN): Define.

24 years agoUse ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE.
Jim Meyering [Sun, 22 Aug 1999 10:57:40 +0000 (10:57 +0000)]
Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 10:53:37 +0000 (10:53 +0000)]
*** empty log message ***

24 years ago(run_shell): Declare with noreturn attribute.
Jim Meyering [Sun, 22 Aug 1999 10:53:13 +0000 (10:53 +0000)]
(run_shell): Declare with noreturn attribute.
Use an explicit exit(1) rather than doing that through error.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 10:22:06 +0000 (10:22 +0000)]
*** empty log message ***

24 years ago(main): Rename locals i and j.
Jim Meyering [Sun, 22 Aug 1999 10:21:36 +0000 (10:21 +0000)]
(main): Rename locals i and j.
Use IF_LINT macro instead of #ifdef lint...

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 10:19:56 +0000 (10:19 +0000)]
*** empty log message ***

24 years ago(validate_path): Use IF_LINT macro instead of #ifdef lint.
Jim Meyering [Sun, 22 Aug 1999 10:19:35 +0000 (10:19 +0000)]
(validate_path): Use IF_LINT macro instead of #ifdef lint.

24 years ago(batch_convert): Use IF_LINT macro instead of #ifdef lint.
Jim Meyering [Sun, 22 Aug 1999 10:19:15 +0000 (10:19 +0000)]
(batch_convert): Use IF_LINT macro instead of #ifdef lint.

24 years ago(dump): Use IF_LINT macro instead of #ifdef lint...
Jim Meyering [Sun, 22 Aug 1999 09:51:20 +0000 (09:51 +0000)]
(dump): Use IF_LINT macro instead of #ifdef lint...
(main): Likewise.

24 years ago(paste_parallel): Use IF_LINT macro instead of #ifdef lint...
Jim Meyering [Sun, 22 Aug 1999 09:50:56 +0000 (09:50 +0000)]
(paste_parallel): Use IF_LINT macro instead of #ifdef lint...

24 years ago(read_line): Use IF_LINT macro instead of #ifdef lint...
Jim Meyering [Sun, 22 Aug 1999 09:50:31 +0000 (09:50 +0000)]
(read_line): Use IF_LINT macro instead of #ifdef lint...

24 years ago(checkfp): Use IF_LINT macro instead of #ifdef lint...
Jim Meyering [Sun, 22 Aug 1999 09:50:05 +0000 (09:50 +0000)]
(checkfp): Use IF_LINT macro instead of #ifdef lint...
(mergefps): Likewise.

24 years ago(usage): Correct bug-reporting email address.
Jim Meyering [Sun, 22 Aug 1999 09:45:52 +0000 (09:45 +0000)]
(usage): Correct bug-reporting email address.
(tsort): Remove trailing `\n' in error format.

24 years ago(IF_LINT): Define new macro.
Jim Meyering [Sun, 22 Aug 1999 09:43:48 +0000 (09:43 +0000)]
(IF_LINT): Define new macro.

24 years ago(md5_check): Remove trailing `\n' in error format.
Jim Meyering [Sun, 22 Aug 1999 09:43:25 +0000 (09:43 +0000)]
(md5_check): Remove trailing `\n' in error format.

24 years ago(SWAP_LINES): New macro.
Jim Meyering [Sun, 22 Aug 1999 08:57:37 +0000 (08:57 +0000)]
(SWAP_LINES): New macro.
(check_file): Use it here.

[really remove min macro, this time]

24 years ago(writeline): Constify a char*.
Jim Meyering [Sun, 22 Aug 1999 08:48:45 +0000 (08:48 +0000)]
(writeline): Constify a char*.

24 years ago(cksum): Constify a char*.
Jim Meyering [Sun, 22 Aug 1999 08:48:06 +0000 (08:48 +0000)]
(cksum): Constify a char*.

24 years ago*** empty log message ***
Jim Meyering [Sun, 22 Aug 1999 08:47:00 +0000 (08:47 +0000)]
*** empty log message ***

24 years ago(parse_integer): Add `const' to char* parameter and
Jim Meyering [Sun, 22 Aug 1999 08:46:33 +0000 (08:46 +0000)]
(parse_integer): Add `const' to char* parameter and
add a separate `suffix' variable.

24 years ago(check_file): Move declarations of local variables
Jim Meyering [Sun, 22 Aug 1999 08:16:34 +0000 (08:16 +0000)]
(check_file): Move declarations of local variables
into the scopes where they're used.
(min): Remove macro definition.
(different): Use MIN, not min.

24 years ago*** empty log message ***
Jim Meyering [Sat, 21 Aug 1999 20:26:25 +0000 (20:26 +0000)]
*** empty log message ***

24 years ago(usage): Remove the ` [-v]' from the Usage: line.
Jim Meyering [Sat, 21 Aug 1999 20:26:18 +0000 (20:26 +0000)]
(usage): Remove the ` [-v]' from the Usage: line.

24 years agoimport latest
Jim Meyering [Fri, 20 Aug 1999 10:05:46 +0000 (10:05 +0000)]
import latest

24 years ago*** empty log message ***
Jim Meyering [Fri, 20 Aug 1999 09:02:39 +0000 (09:02 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Fri, 20 Aug 1999 08:58:40 +0000 (08:58 +0000)]
*** empty log message ***

24 years ago(usage): Tweak --help output to make it more consistent with that of chgrp.
Jim Meyering [Fri, 20 Aug 1999 08:58:34 +0000 (08:58 +0000)]
(usage): Tweak --help output to make it more consistent with that of chgrp.

24 years ago(usage): Tweak --help output to make it more consistent with that of chown.
Jim Meyering [Fri, 20 Aug 1999 08:58:21 +0000 (08:58 +0000)]
(usage): Tweak --help output to make it more consistent with that of chown.

24 years agopaste --delimiters: add missing `='
Jim Meyering [Wed, 18 Aug 1999 16:21:16 +0000 (16:21 +0000)]
paste --delimiters: add missing `='

24 years agostty --file: add missing `='
Jim Meyering [Wed, 18 Aug 1999 16:20:03 +0000 (16:20 +0000)]
stty --file: add missing `='

24 years ago*** empty log message ***
Jim Meyering [Wed, 18 Aug 1999 07:41:39 +0000 (07:41 +0000)]
*** empty log message ***

24 years ago(AC_SYS_LARGEFILE): Fix typo: missing comma
Jim Meyering [Wed, 18 Aug 1999 07:41:27 +0000 (07:41 +0000)]
(AC_SYS_LARGEFILE): Fix typo: missing comma
in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.

24 years ago*** empty log message ***
Jim Meyering [Tue, 17 Aug 1999 10:17:42 +0000 (10:17 +0000)]
*** empty log message ***

24 years agosource input-tty instead of open-coding it
Jim Meyering [Tue, 17 Aug 1999 10:15:50 +0000 (10:15 +0000)]
source input-tty instead of open-coding it

24 years ago(EXTRA_DIST): Add input-tty.
Jim Meyering [Tue, 17 Aug 1999 10:14:23 +0000 (10:14 +0000)]
(EXTRA_DIST): Add input-tty.

24 years ago*** empty log message ***
Jim Meyering [Tue, 17 Aug 1999 10:13:27 +0000 (10:13 +0000)]
*** empty log message ***

24 years ago*** empty log message ***
Jim Meyering [Tue, 17 Aug 1999 08:03:49 +0000 (08:03 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Tue, 17 Aug 1999 08:00:19 +0000 (08:00 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Tue, 17 Aug 1999 07:59:12 +0000 (07:59 +0000)]
*** empty log message ***

24 years ago.
Jim Meyering [Tue, 17 Aug 1999 07:46:10 +0000 (07:46 +0000)]
.

24 years agoThis change is nearly identical to the chown.c change of 1998-05-24
Jim Meyering [Mon, 16 Aug 1999 21:21:39 +0000 (21:21 +0000)]
This change is nearly identical to the chown.c change of 1998-05-24
Accept new option, --dereference.
--no-dereference is now the default. Include lchown.h.
(enum Change_status) [CH_NOT_APPLIED]: New member.
(change_symlinks): Enable this by default, now.
(describe_change): Handle new case.
(change_file_group): Add new parameter: cmdline_arg.  Update callers.
Reorganize to reflect changed semantics.
(LCHOWN): Remove definitions.
From Bruno Haible.

24 years ago(groupname): Declare to be `const'.
Jim Meyering [Mon, 16 Aug 1999 21:20:44 +0000 (21:20 +0000)]
(groupname): Declare to be `const'.
(change_dir_owner): Declare statp parameter to be `const'.
(usage): Make the output be more consistent with that from chgrp.

24 years agofactor examples
Jim Meyering [Sun, 15 Aug 1999 18:43:54 +0000 (18:43 +0000)]
factor examples

24 years ago*** empty log message ***
Jim Meyering [Sun, 15 Aug 1999 12:57:21 +0000 (12:57 +0000)]
*** empty log message ***

24 years ago--pid vs djgpp
Jim Meyering [Sun, 15 Aug 1999 12:56:33 +0000 (12:56 +0000)]
--pid vs djgpp

24 years ago(ENOSYS): Define to a bogus value if not already defined.
Jim Meyering [Sun, 15 Aug 1999 12:56:00 +0000 (12:56 +0000)]
(ENOSYS): Define to a bogus value if not already defined.
(parse_options): Warn if --pid=PID is used and kill()
returns ENOSYS (e.g. when compiled with DJGPP).

24 years ago. SH-UTILS-2_0
Jim Meyering [Sat, 14 Aug 1999 15:37:41 +0000 (15:37 +0000)]
.

24 years ago*** empty log message ***
Jim Meyering [Sat, 14 Aug 1999 12:42:56 +0000 (12:42 +0000)]
*** empty log message ***

24 years agoFail-77 if stdin is not a tty.
Jim Meyering [Sat, 14 Aug 1999 12:42:03 +0000 (12:42 +0000)]
Fail-77 if stdin is not a tty.

24 years ago*** empty log message ***
Jim Meyering [Sat, 14 Aug 1999 12:41:34 +0000 (12:41 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Fri, 13 Aug 1999 08:51:42 +0000 (08:51 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Fri, 13 Aug 1999 08:02:03 +0000 (08:02 +0000)]
*** empty log message ***

25 years ago.
Jim Meyering [Fri, 13 Aug 1999 07:57:15 +0000 (07:57 +0000)]
.

25 years ago*** empty log message ***
Jim Meyering [Thu, 12 Aug 1999 15:16:12 +0000 (15:16 +0000)]
*** empty log message ***

25 years agoDocument how to ignore newline during sort
Jim Meyering [Thu, 12 Aug 1999 15:16:04 +0000 (15:16 +0000)]
Document how to ignore newline during sort

25 years ago*** empty log message ***
Jim Meyering [Thu, 12 Aug 1999 15:15:49 +0000 (15:15 +0000)]
*** empty log message ***

25 years ago*** empty log message ***
Jim Meyering [Tue, 10 Aug 1999 11:02:10 +0000 (11:02 +0000)]
*** empty log message ***

25 years ago(usage): Add ls --quoting-style=locale.
Jim Meyering [Tue, 10 Aug 1999 11:00:58 +0000 (11:00 +0000)]
(usage): Add ls --quoting-style=locale.

25 years ago(ARGMATCH_QUOTING_STYLE):
Jim Meyering [Tue, 10 Aug 1999 11:00:12 +0000 (11:00 +0000)]
(ARGMATCH_QUOTING_STYLE):
Change from escape_quoting_style to locale_quoting_style.
(argmatch_invalid): Use new quotearg_style primitive for simplicity.
Also, use ARGMATCH_QUOTING_STYLE to quote, instead of quoting ourselves.

25 years ago(locale_quoting_style): New enum value.
Jim Meyering [Tue, 10 Aug 1999 10:58:01 +0000 (10:58 +0000)]
(locale_quoting_style): New enum value.
(quotearg_n_style, quotearg_style): New decls.

25 years agoInclude <libintl.h> if ENABLE_NLS.
Jim Meyering [Tue, 10 Aug 1999 10:50:18 +0000 (10:50 +0000)]
Include <libintl.h> if ENABLE_NLS.
(_): New macro.
(quoting_style_args, quoting_style_v, quotearg_buffer): Add support
for locale_quoting_style, using _("`") and _("'") for open and close
quote symbols.
Do not quote spaces in escape_quoting_style.
(quotearg_n_style, quotearg_style): New functions.

25 years ago*** empty log message ***
Jim Meyering [Sun, 8 Aug 1999 20:01:58 +0000 (20:01 +0000)]
*** empty log message ***