Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expand *n't contractions. | ru | 2005-02-13 | 1 | -1/+1 |
| | |||||
* | Include missing headers. | stefanf | 2005-02-09 | 1 | -0/+1 |
| | |||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 1 | -1/+1 |
| | |||||
* | Scheduled mdoc(7) sweep. | ru | 2005-01-11 | 1 | -5/+3 |
| | |||||
* | Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived | dds | 2004-08-09 | 8 | -32/+0 |
| | | | | | | software (original contributor). Reviewed by: imp | ||||
* | Document the limitation that multibyte characters cannot be used as | tjr | 2004-07-17 | 1 | -1/+6 |
| | | | | delimiters with the 's' and 'y' commands. | ||||
* | Document the -E and -a options as being extensions. | tjr | 2004-07-14 | 1 | -2/+5 |
| | |||||
* | Update BUGS section to reflect current state of multibyte character support. | tjr | 2004-07-14 | 1 | -4/+11 |
| | |||||
* | Make the 'y' (translate) command aware of multibyte characters. | tjr | 2004-07-14 | 5 | -17/+145 |
| | |||||
* | Overhaul lputs() to deal with multibyte characters, characters that take | tjr | 2004-07-13 | 1 | -24/+53 |
| | | | | up more than one column position, and null bytes. | ||||
* | Document missing multibyte character support in utilities specified | tjr | 2004-07-03 | 1 | -1/+5 |
| | | | | by POSIX. | ||||
* | Mechanically kill hard sentence breaks. | ru | 2004-07-02 | 1 | -7/+14 |
| | |||||
* | Removed trailing whitespace. | ru | 2004-07-02 | 1 | -1/+1 |
| | |||||
* | Plug a file descriptor leak. | brian | 2004-06-03 | 1 | -7/+13 |
| | | | | | | | When sed is asked to inline-edit files, it forgets to close the temporary file and runs out of descriptors for long command lines (assuming you reset kern.maxfilesperproc to something sane that's less than the number of files passed to sed). | ||||
* | A new version that does exponents and lots of other neat things. Update | smkelly | 2004-05-01 | 1 | -59/+335 |
| | | | | | | from the original author of math.sed. Submitted by: K S Braunsdorf <sed@ksb.npcguild.org> | ||||
* | Avoid using .Nm at the start of the sentence. | charnier | 2004-01-04 | 1 | -3/+2 |
| | |||||
* | Fix the case where the file is not in the current directory. | des | 2003-11-04 | 1 | -1/+2 |
| | | | | | Discovered by: Vladimir Kravchenko <jimson@mostcom.ru> Pointy hat to: des | ||||
* | Reimplement in-place editing in a slightly less disgusting manner. Also, | des | 2003-11-04 | 3 | -91/+84 |
| | | | | | | | make an effort to preserve the ownership and mode of the file we are editing. Sponsored by: Registrar AS | ||||
* | Whitespace cleanup | des | 2003-11-04 | 2 | -21/+21 |
| | |||||
* | ANSIfy | des | 2003-11-04 | 4 | -78/+33 |
| | |||||
* | Correct style bugs in the in-place editing code. | des | 2003-11-04 | 1 | -2/+2 |
| | |||||
* | Change the buffer length test in NEEDSP() so that it does not | tjr | 2003-11-02 | 1 | -1/+2 |
| | | | | | | | | subtract one unsigned number from another potentially smaller one, leading to wraparound (and heap corruption, eventually). PR: 58813 MFC after: 2 weeks | ||||
* | Fixed .Nm element, updated HISTORY section, added AUTHORS section. | dds | 2003-07-22 | 1 | -2/+6 |
| | | | | | Reviewed by: schweikh (mentor) MFC after: 2 weeks | ||||
* | Test 8.16 in sed.test tests the ability of a sed to handle an empty | dds | 2003-07-22 | 1 | -11/+19 |
| | | | | | | | | | | | | | | | | | regular expression as the first argument to a substitute command. If used to test a sed which (erroneously) evaluates this at translation time rather than at execution time, the bugged sed is put into an infinite loop. This mode of failure seems excessive. Such a failing sed is the Free Software Foundation's sed 3.02. The specific test was also not being executed for the BSD sed. Both problems are now fixed. PR: misc/25585 Submitted by: Walter Briscoe <w.briscoe@ponl.com> Approved by: schweikh (mentor) MFC after: 2 weeks | ||||
* | Do not dribble zero bytes into the output, by replacing an obfuscated if | fanf | 2003-06-05 | 1 | -4/+1 |
| | | | | | | | | whose true and false clauses were equivalent with a check that we are not about to stumble off the end of the line. Reported by: peter Pointy hat to: fanf | ||||
* | Fix substitution when the regex matches the zero-length string. | fanf | 2003-06-04 | 1 | -5/+6 |
| | | | | | | | | | There are two bugs: in the s///g case, the substitution didn't occur at the end of the line; in the s///N case, the code didn't count forwards along the line properly. See the sg, s3, s4, and s5 tests in src/tools/regression/usr.bin/sed/. Reviewed by: tjr | ||||
* | Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, | schweikh | 2003-01-01 | 1 | -1/+1 |
| | | | | especially in troff files. | ||||
* | mdoc(7) police: markup polishing. | ru | 2002-11-26 | 1 | -6/+3 |
| | | | | Approved by: re | ||||
* | Initialize a variable in order to fix when faced with picky compilers. | eric | 2002-09-20 | 1 | -0/+2 |
| | | | | Sponsored by: Apple | ||||
* | Correct boundary condition error in `D' and `P' commands when the last | tjr | 2002-08-11 | 1 | -6/+3 |
| | | | | | | | | line of the pattern space is empty. Don't emit spurious newline when EOF is reached with the `N' command. Pointed out by: Oleg Osyka MFC after: 1 week | ||||
* | Fix some bugs in in-place editing: | fanf | 2002-07-30 | 1 | -28/+26 |
| | | | | | | | | (1) errors from freopen were not reported correctly (2) large files were not handled correctly (3) read-only files broke things MFC after: 1 week | ||||
* | Ignore leading semicolons on commands; required by SUSv3. | tjr | 2002-07-30 | 1 | -2/+8 |
| | | | | Obtained from: NetBSD (kleink, Aymeric Vincent) | ||||
* | s/inline/__inline/ | markm | 2002-07-19 | 1 | -4/+4 |
| | |||||
* | Make cspace()'s second argument const. Make `escapes' in lputs() const. | tjr | 2002-07-08 | 2 | -3/+4 |
| | |||||
* | Silence WARNS=4 by passing a non-const buffer to regerror(). Since it | tjr | 2002-07-08 | 1 | -1/+1 |
| | | | | doesn't actually use the buffer when errbuf_size == 0, pass NULL. | ||||
* | Update another mention of <CR><CR> I missed the first time around (rev 1.2) | tjr | 2002-07-04 | 1 | -1/+1 |
| | |||||
* | Note that two carriage returns aren't required after entering the | tjr | 2002-07-03 | 1 | -2/+3 |
| | | | | | | initial setup anymore (since process.c rev. 1.25). Add $FreeBSD$. MFC after: 2 weeks | ||||
* | Avoid checking whether each line is the last line of the file when we don't | tjr | 2002-07-03 | 3 | -25/+29 |
| | | | | | | | | | need to know. Instead, check when we are trying to match a "$" address. This does not change the way sed processes regular files, but makes it behave more sensibly when used interactively. PR: 40101 MFC after: 2 weeks | ||||
* | Don't let the pattern space become null if the `x' command is used when the | tjr | 2002-07-03 | 1 | -0/+2 |
| | | | | | | hold space is null; some functions assume it's never null. MFC after: 3 days | ||||
* | Sort sections, and refer to sed as a utility, not a function. | tjr | 2002-06-25 | 1 | -6/+6 |
| | |||||
* | Fix off by one in `y' (transliterate) command which caused the last character | tjr | 2002-06-24 | 1 | -1/+1 |
| | | | | | | of the pattern space not to be examined. Noticed by: Motoyuki Konno <motoyuki@bsdclub.org> | ||||
* | Now that the pattern space contains no trailing newline, modify the `l' | tjr | 2002-06-22 | 1 | -1/+5 |
| | | | | command's output so it's the same as what SUSv3 specifies. | ||||
* | Don't store newlines at the end of each line in the hold/pattern spaces, | tjr | 2002-06-22 | 2 | -11/+12 |
| | | | | | | | | instead add the newline when the pattern space is printed. Make the `G' and `H' commands add a newline to the space before the data, remove bogus addition of newline from `x' command. PR: 29790, 38195 | ||||
* | Kill superfluous blank line. | sobomax | 2002-06-17 | 1 | -1/+0 |
| | |||||
* | Correct the handling of (for example) the N command by only zeroing the | tjr | 2002-06-16 | 1 | -1/+2 |
| | | | | input space in mf_fgets() if we reach the end of all input files. | ||||
* | Exit with non-zero status if an input file can not be opened. This was | tjr | 2002-06-14 | 1 | -0/+1 |
| | | | | broken by rev. 1.22. | ||||
* | Fix one serious bug and one potential problem with in-place editing code: | sobomax | 2002-06-14 | 1 | -70/+60 |
| | | | | | | | | | | | | | - original version of code worked incorrectly when more than one input files were specified - it was moving the last line from the 1st file to be the first line of the 2nd, last line of the 2nd to be the first line of the 3rd and so on; - use mmap()->write() to create temporary file instead of malloc()->read()->write(), which was not only slower, but also did not bother to free allocated memory once backup file was created, potentially leading to memory exhausting when regex is applied to a big file or a large number of small ones. | ||||
* | Refer to environ(7) for description of COLUMNS instead of describing it | tjr | 2002-06-10 | 1 | -10/+9 |
| | | | | in-line. Document effects of locale environment variables in the same way. | ||||
* | The 10 occurrence limit for the `s' command documented here has not existed | tjr | 2002-06-10 | 1 | -3/+4 |
| | | | | for a very long time (or never did exist). | ||||
* | Newlines are not escaped anymore. | tjr | 2002-06-10 | 1 | -2/+0 |
| |