source: trunk/third/sed/BUGS @ 17271

Revision 17271, 2.6 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17270, which included commits to RCS files with non-trunk default branches.
Line 
1* ABOUT BUGS
2
3Before reporting a bug, please check the list of known bugs
4and the list of oft-reported non-bugs (below).
5
6Bugs and comments may be sent to bug-gnu-utils@gnu.org; please
7include the word ``sed'' in the Subject: header.
8
9Please do not send a bug report like this:
10
11        [while building frobme-1.3.4]
12        $ configure
13        sed: file sedscr line 1: Unknown option to 's'
14        $ sed --version
15        GNU sed version 3.01
16
17If GNU sed doesn't configure your favorite package, take a few extra
18minutes to identify the specific problem and make a stand-alone test
19case.
20
21A stand-alone test case includes all the data necessary to perform the
22test, and the specific invocation of sed that causes the problem.  The
23smaller a stand-alone test case is, the better.  A test case should
24not involve something as far removed from sed as ``try to configure
25frobme-1.3.2''.  Yes, that is in principle enough information to look
26for the bug, but that is not a very practical prospect.
27
28
29
30* KNOWN BUGS
31
32Regular expression evaluation performance sucks.  Fixing this is
33a high priority for the next release, but I did not want to open
34this can of worms for the 3.01 release because there were more
35important functional bugs which had been wanting fixing.  And
36another issue is that the regular expression routines provided
37do not _fully_ support POSIX.2 BREs.
38
39Improvement of the documentation and the testsuite are also in the
40plans for 3.02.  Specific suggestions are welcome, but I am
41already aware of the general complaint of "this ain't good
42enough", so you don't need to tell me that.
43
44
45* NON-BUGS
46
47 `sed -n' and `s/regex/replace/p'
48
49Some versions of sed ignore the `p' (print) option of an `s' command
50unless the `-n' command switch has been specified.  Other versions
51always honor the `p' option.  GNU sed is the latter sort.  (Both
52approaches are allowed by POSIX.2.)
53
54
55 regexp syntax clashes
56
57GNU sed uses the Posix basic regular expression syntax.  According to
58the standard, the meaning of some escape sequences is undefined in
59this syntax;  notable in the case of GNU sed are `\|', `\+', `\?',
60`\`', `\'', `\<', `\>', `\b', `\B', `\w', and `\W'.
61
62As in all GNU programs that use Posix basic regular expressions, sed
63interprets these escape sequences as meta-characters.  So, `x\+'
64matches one or more occurrences of `x'.   `abc\|def' matches either
65`abc' or `def'.
66
67This syntax may cause problems when running scripts written for other
68seds.  Some sed programs have been written with the assumption that
69`\|' and `\+' match the literal characters `|' and `+'.  Such scripts
70must be modified by removing the spurious backslashes if they are to
71be used with GNU sed.
Note: See TracBrowser for help on using the repository browser.