| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
Notes:
svn path=/head/; revision=201489
|
| |
|
|
| |
Notes:
svn path=/head/; revision=201488
|
| |
|
|
| |
Notes:
svn path=/head/; revision=201482
|
| |
|
|
|
|
|
| |
The tests for it require manual setup.
Notes:
svn path=/head/; revision=201480
|
| |
|
|
| |
Notes:
svn path=/head/; revision=201479
|
| |
|
|
| |
Notes:
svn path=/head/; revision=201478
|
| |
|
|
| |
Notes:
svn path=/head/; revision=201426
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to wcscoll(3). Newline characters could cause incorrect results when
comparing lines.
Also, if an input line didn't contain a newline character, it was
omitted from the output. According to my interpretation, SUSv3 requires
that the newline is always printed.
Add regression tests for the cases. [1]
PR: bin/140976
Submitted by: D'Arcy Cain (original version) [1]
Approved by: trasz (mentor)
Notes:
svn path=/head/; revision=200442
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"The escape sequence '\n' shall match a <newline> embedded in
the pattern space."
It is unclear whether this also applies to a \n embedded in a
character class. Disable the existing handling of \n in a character
class following Mac OS X, GNU sed version 4.1.5 with --posix, and
SunOS 5.10 /usr/bin/sed.
Pointed by: Marius Strobl
Obtained from: Mac OS X
Notes:
svn path=/head/; revision=197362
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
of the y (translate) command.
"If a backslash character is immediately followed by a backslash
character in string1 or string2, the two backslash characters shall
be counted as a single literal backslash character"
Pointed by: Marius Strobl
Obtained from: Mac OS X
Notes:
svn path=/head/; revision=197361
|
| |
|
|
| |
Notes:
svn path=/head/; revision=197360
|
| |
|
|
| |
Notes:
svn path=/head/; revision=197357
|
| |
|
|
|
|
|
|
| |
Pointed by: Marius Strobl
Obtained from: Apple
Notes:
svn path=/head/; revision=197356
|
| |
|
|
|
|
|
|
|
| |
repo-copy hacks.
Remove the test-number prefix from the name of the output files,
so that new test cases can be easily added.
Notes:
svn path=/head/; revision=197352
|
| |
|
|
|
|
|
|
|
|
| |
PR: 136383
Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net
Approved by: re (kib)
MFC after: 3 weeks
Notes:
svn path=/head/; revision=195443
|
| |
|
|
| |
Notes:
svn path=/head/; revision=192733
|
| |
|
|
|
|
|
|
|
|
|
|
| |
colliding upper case letters as the lower case letter with a '_' in
front.
MFC after: 3 days
Discussed with: ed
Spotted by: Michael David Crawford <mdc at prgmr.com>
Notes:
svn path=/head/; revision=189613
|
| |
|
|
|
|
|
|
|
|
|
| |
The jot(1) regression tests directory contained two tests named `wx' and
`wX', which doesn't work on case insensitive filesystems. Rename `wX' to
`wX1'.
MFC after: 1 month
Notes:
svn path=/head/; revision=187332
|
| |
|
|
|
|
|
|
|
| |
"A function can be preceded by one or more '!' characters, in which
case the function shall be applied if the addresses do not select
the pattern space."
Notes:
svn path=/head/; revision=184852
|
| |
|
|
|
|
|
| |
Approved by: das, dds
Notes:
svn path=/head/; revision=175289
|
| |
|
|
|
|
|
| |
Approved by: das, dds
Notes:
svn path=/head/; revision=175288
|
| |
|
|
|
|
|
| |
This fixes the reporting under prove(1)
Notes:
svn path=/head/; revision=174656
|
| |
|
|
| |
Notes:
svn path=/head/; revision=174655
|
| |
|
|
|
|
|
|
|
| |
when not being asked to do so.
Approved by: re (hrs)
Notes:
svn path=/head/; revision=171285
|
| |
|
|
|
|
|
|
|
|
|
|
| |
For example,
sed /foo/Id
sed s/foo/bar/Ig
Reviewed by: dds
Approved by: re (hrs)
Notes:
svn path=/head/; revision=171206
|
| |
|
|
|
|
|
|
|
|
|
| |
when in -i mode so that each file gets a clean context of its own.
Add a regression test for the bug.
Tested with: regression tests
Notes:
svn path=/head/; revision=170608
|
| |
|
|
|
|
|
| |
Submitted by: edwin@
Notes:
svn path=/head/; revision=170448
|
| |
|
|
|
|
|
|
|
| |
cpp, not a shell script.
Pointy hat to: grog
Notes:
svn path=/head/; revision=170261
|
| |
|
|
|
|
|
|
|
| |
Submitted by: edwin@
PR: bin/113275
MFC after: 2 weeks
Notes:
svn path=/head/; revision=170231
|
| |
|
|
|
|
|
| |
Submitted by: Carl Johan Gustavsson
Notes:
svn path=/head/; revision=169928
|
| |
|
|
|
|
|
|
| |
the mapping from number to name differs between systems,
and will cause tests to fail.
Notes:
svn path=/head/; revision=169927
|
| |
|
|
|
|
|
| |
Submitted by: Carl Johan Gustavsson
Notes:
svn path=/head/; revision=169856
|
| |
|
|
|
|
|
| |
Submitted by: Larry Rosenman (who also provided access to a testing host)
Notes:
svn path=/head/; revision=169855
|
| |
|
|
| |
Notes:
svn path=/head/; revision=169854
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
each file independently from other files. The new semantics are
desired in the most of practical cases, e.g.: delete lines 5-9
from each file.
Keep the previous semantics of -i under a new option, -I, which
uses a single continuous address space covering all files to edit
in-place -- they are too cool to just drop them.
Add regression tests for -i and -I.
Approved by: dds
Compared with: GNU sed
Discussed on: -hackers
MFC after: 2 weeks
Notes:
svn path=/head/; revision=168921
|
| |
|
|
| |
Notes:
svn path=/head/; revision=168259
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and had no chance to match it by the 2nd address precisely.
Otherwise the unclosed range would bogusly extend to the end
of stream.
Add a basic regression test for the bug fixed. (This change
also fixes the more complex case 5.3 from `multitest.t'.)
Compared with: SUN and GNU seds
Tested by: regression tests
MFC after: 1 week
Notes:
svn path=/head/; revision=168258
|
| |
|
|
|
|
|
|
|
| |
in a more reasonable way than BSD sed does: they properly
close the range even if we branched over its end. No doubt,
the range `1,5' should not match lines from 9 through 14.
Notes:
svn path=/head/; revision=168257
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
them are related to the `c' function's need to know if we are at
the actual end of the address range. (It must print the text not
earlier than the whole pattern space was deleted.) It appears the
only sed function with this requirement.
There is `lastaddr' set by applies(), which is to notify the `c'
function, but it can't always help because it's false when we are
hitting the end of file early. There is also a bug in applies()
due to which `lastaddr' isn't set to true on degenerate ranges such
as `$,$' or `N,$' if N appears the last line number.
Handling early EOF condition in applies() could look more logical,
but it would effectively revert sed to the unreasonable behaviour
rev. 1.26 of main.c fought against, as it would require lastline()
be called for each line within each address range. So it's better
to call lastline() only if needed by the `c' function.
Together with this change to sed go regression tests for the bugs
fixed (c1-c3). A basic test of `c' (c0) is also added as it helped
me to spot my own error.
Discussed with: dds
Tested by: the regression tests
MFC after: 1 week
Notes:
svn path=/head/; revision=168211
|
| |
|
|
|
|
|
| |
the regression suite.
Notes:
svn path=/head/; revision=167569
|
| |
|
|
| |
Notes:
svn path=/head/; revision=167555
|
| |
|
|
|
|
|
| |
testing framework and protocol.
Notes:
svn path=/head/; revision=167552
|
| |
|
|
|
|
|
|
|
|
|
|
| |
I have verified these with GNU sed 4.1.5 (and in some cases with Solaris
sed) and they are identical, with the following exceptions:
5.3: The result is unspecified and BSD sed behaves differently.
6.3: GNU sed gets it wrong
7.1: GNU sed gets it wrong
7.8: BSD sed gets it wrong
Notes:
svn path=/head/; revision=167550
|
| |
|
|
|
|
|
|
| |
- Update platform-conditional tests to reflect current reality
- Fix conditional for test 7.8: it is the fault of BSD sed
Notes:
svn path=/head/; revision=167549
|
| |
|
|
|
|
|
| |
- Test 7.8 fails for GNU sed not BSD.
Notes:
svn path=/head/; revision=167547
|
| |
|
|
| |
Notes:
svn path=/head/; revision=167546
|
| |
|
|
|
|
|
|
|
| |
GNU sed 4.1.5.
Almost all of the tests that were skipped for BSD or GNU sed
now appear to work.
Notes:
svn path=/head/; revision=167544
|
| |
|
|
| |
Notes:
svn path=/head/; revision=167537
|
| |
|
|
| |
Notes:
svn path=/head/; revision=167536
|
| |
|
|
|
|
|
|
|
|
|
|
| |
According to IEEE Std 1003.1, 2004 "Whenever the pattern space is
written to standard output or a named file, sed shall immediately
follow it with a <newline>."
An attempt at the same correction might have been made with r1.3,
which is however identical with r1.2.
Notes:
svn path=/head/; revision=167531
|