Paul Eggert
661b506c3d
(fail-a): Adjust exit status to match new expr behavior, for status 2 versus 3.
...
(anchor): New test.
(bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
(bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
(bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
(bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
(bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
(bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
(bre61, bre62): New tests.
2006-04-12 07:17:02 +00:00
Paul Eggert
110970f622
(docolon): Set re_syntax_options to a value that is compatible with
...
what POSIX requires. Also, don't let anchors match
newline; this fixes an incompatibility with tradition and with POSIX.
Don't warn about leading ^. POSIX says it is unspecified whether
^ is a special character, which means that implementations can
either treat it as special or not, but either way a warning is not
allowed (unless the regexp is otherwise invalid). Instead, anchor
the expression but treat ^ as an anchor; this is the traditional
behavior (e.g., Solaris 10).
(eval4, eval3, eval2): Treat non-numeric args, division by zero,
and the like as invalid expressions (exit status 2), not as
failure of 'expr' (exit status 3). This is more consistent with
how Solaris behaves.
2006-04-12 07:16:20 +00:00
Paul Eggert
6fd9c6f98e
(build_type_arg): Set re_syntax_options to a value that is compatible
...
with what POSIX requires.
2006-04-12 07:15:21 +00:00
Paul Eggert
2a75bb4ae0
(extract_regexp): Set re_syntax_options to a
...
value that is compatible with what POSIX requires.
2006-04-12 07:14:53 +00:00
Paul Eggert
f666da6f32
(gl_TIME_R): Add AC_LIBSOURCES for time_r.c and time_r.h.
2006-04-12 07:11:52 +00:00
Paul Eggert
1ff52c6a54
Do not assume that 'sed' can handle long, newline-free input.
...
Evaluate expr once, not $n times.
2006-04-12 07:07:55 +00:00
Paul Eggert
0dfc08bf3a
Solaris 8 sh doesn't understand "if !". Do not assume that 'sed' can
...
handle long, newline-free input.
2006-04-12 07:07:32 +00:00
Paul Eggert
9066275509
Adjust to new regex.h API (with new fastmap type), and clean
...
up the regex storage allocation a bit.
2006-04-11 00:52:16 +00:00
Paul Eggert
1f1ff10b0c
(compiled_separator_fastmap): New ver.
...
(main): Use it. Don't bother allocating a buffer.
2006-04-11 00:52:01 +00:00
Paul Eggert
8745735aaf
(context_regex_string, word_regex_string): Remove.
...
(context_regex, word_regex): New vars, replacing the above.
All uses changed.
(struct regex_data): New type.
(compile_regex): Renamed from alloc_and_compile_regex, since
we no longer allocate storage. Arg is now a struct regex_data *,
not a const char *. All uses changed. Don't allocate the fastmap;
instead, take it from the caller. Don't convert size_t to int,
to avoid arithmetic overflow problems. Don't bother freeing
storage afterwards; it's not worth the aggravation.
2006-04-11 00:51:42 +00:00
Paul Eggert
fad52643e0
(body_fastmap, header_fastmap, footer_fastmap):
...
New vars.
(build_type_arg): New fastmap arg. All uses changed.
Don't bother allocating a buffer, but set a fastmap.
2006-04-11 00:51:23 +00:00
Paul Eggert
2a124564c7
(docolon): Allocate and use a fastmap.
...
Don't bother allocating a buffer.
2006-04-11 00:50:56 +00:00
Paul Eggert
87bd526828
Update copyright year.
2006-04-11 00:50:33 +00:00
Paul Eggert
ff652937b0
(struct control): Put re_compiled member at the
...
end, since it's large. Change regexpr member from char * to bool;
all uses changed. Add new member fastmap.
(extract_regexp): regexp arg is now char const *, not char *.
Don't bother duplicating the regular expression; it's not needed.
Set fastmap from new fastmap member. Don't bother allocating
a buffer, as the regexp code does a better job than we do.
2006-04-11 00:49:59 +00:00
Jim Meyering
ba75c95164
remove useless spaces before TABs
2006-04-10 19:15:08 +00:00
Paul Eggert
72021730a8
Import latest regex module from gnulib.
2006-04-10 06:46:07 +00:00
Paul Eggert
1fe38016fa
Add 'hostid' to System context menu line.
2006-04-09 07:55:05 +00:00
Paul Eggert
dd175a9f41
(Top): Fix typo in System context menu entry: hostid wasn't mentioned.
2006-04-09 07:52:33 +00:00
Jim Meyering
38433b219d
(iwrite): Remove assignment without effect.
...
Reported by Felix Rauch Valenti.
2006-03-30 13:47:57 +00:00
Jim Meyering
568eec4a9d
*** empty log message ***
2006-03-30 13:26:59 +00:00
Jim Meyering
6809ff6910
*** empty log message ***
2006-03-28 09:48:26 +00:00
Jim Meyering
b1aecc319f
(General options in ptx): Undocument --copyright.
2006-03-28 09:48:15 +00:00
Jim Meyering
2fdcdc90f0
*** empty log message ***
2006-03-28 09:47:56 +00:00
Jim Meyering
1ae249fba2
(usage): Remove mention of --copyright/-C.
...
(main): Alias --copyright to --version plus a deprecation warning.
2006-03-28 09:47:28 +00:00
Jim Meyering
5378e090da
deprecate ptx's --copyright (-C) option
2006-03-28 09:46:38 +00:00
Jim Meyering
4e5755ff74
*** empty log message ***
2006-03-27 14:08:04 +00:00
Jim Meyering
ce88154fd8
(dirname invocation): Macro in previous patch was too broad.
2006-03-27 14:08:00 +00:00
Jim Meyering
120d34efe1
version: 5.94
2006-03-27 10:30:34 +00:00
Jim Meyering
c5e8364536
.
2006-03-27 07:35:23 +00:00
Jim Meyering
20e2d352c0
(uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod.
...
Tiny patch from Nickolai Zeldovich.
2006-03-27 07:34:48 +00:00
Jim Meyering
1c952c4d7d
*** empty log message ***
2006-03-27 07:32:44 +00:00
Jim Meyering
a35fc49153
.
2006-03-26 12:33:28 +00:00
Jim Meyering
fa9be79b41
*** empty log message ***
2006-03-26 12:30:45 +00:00
Jim Meyering
3c7ab9f144
(gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
2006-03-26 12:30:37 +00:00
Jim Meyering
d5a462a196
(FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
...
(FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
2006-03-26 12:30:07 +00:00
Jim Meyering
665ede556d
new file from Eric Blake
2006-03-26 12:22:44 +00:00
Jim Meyering
864c4c28af
*** empty log message ***
2006-03-26 12:20:59 +00:00
Jim Meyering
8773d59d55
(base_name): New semantics - malloc the result.
...
Preserve // when it is special.
Preserve relative files that look like drive letters.
(base_len): Preserve // when it is special.
(last_component): New method, similar to old base_name semantics.
2006-03-26 12:20:46 +00:00
Jim Meyering
8132c6e76e
(dir_len): Determine when drive letters need a subsequent slash.
...
Preserve // when it is special.
(dir_name): Don't append dot when drive letter is absolute.
[TEST_DIRNAME]: Move into a full-blown gnulib test.
2006-03-26 12:20:24 +00:00
Jim Meyering
ba0f1e7d7f
(FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
...
[FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a drive prefix.
(IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
(last_component): New method.
2006-03-26 12:20:06 +00:00
Jim Meyering
7029f979e5
(strip_trailing_slashes): Use last_component, not base_name.
...
Strip redundant slashes from ///.
2006-03-26 12:18:51 +00:00
Jim Meyering
cb916337dc
(file_name_concat): s/base_name/last_component/
2006-03-26 12:16:11 +00:00
Jim Meyering
bfbe80d004
(check_extension, numbered_backup): s/base_name/last_component/
2006-03-26 12:15:59 +00:00
Jim Meyering
4ecf233b95
(same_name): s/base_name/last_component/
2006-03-26 12:14:16 +00:00
Jim Meyering
ee660c455a
(basename invocation, dirname invocation):
...
Improve documentation to match recent // patches.
2006-03-26 12:11:40 +00:00
Jim Meyering
bbee8a57b0
*** empty log message ***
2006-03-26 12:09:09 +00:00
Jim Meyering
0ad9592c12
*** empty log message ***
2006-03-26 12:08:27 +00:00
Jim Meyering
1225a53068
(log_su, run_shell): Use new last_component, in place of base_name.
2006-03-26 12:08:20 +00:00
Jim Meyering
b828255717
(next_file_name): Use new last_component, in place of base_name.
2006-03-26 12:08:10 +00:00
Jim Meyering
d4d9a40b82
(wipename): Use new last_component, in place of base_name.
2006-03-26 12:07:59 +00:00