Commit Graph

140 Commits

Author SHA1 Message Date
christos eefaa0a08a PR/49109: Jeremie Le Hen: fix sed relative addressin (1,+N)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192108
http://svnweb.freebsd.org/base?view=revision&revision=269302
XXX: pullup 7.
2014-08-13 11:35:34 +00:00
christos bf51dc6d97 restore sccsid[]'s per core@'s decision 2014-06-26 02:14:32 +00:00
uwe 7fbcdeb13a Command file argument to -f is not optional. 2014-06-25 02:05:58 +00:00
christos ff4ba887a6 typo 2014-06-21 21:05:54 +00:00
christos 239f3a758e CID 10006930: Prevent outfile overwrite resource leak. 2014-06-21 17:43:04 +00:00
uwe 5a5964be39 Suppress space after -I and -i options in description too.
XXX: This should be documented explicitly.
2014-06-18 14:47:02 +00:00
uwe 8b8d85039c Suppress space after -I and -i options. 2014-06-18 14:26:15 +00:00
christos c095d1ec95 Fix usage. The man page is incorrect with respect to -I and -i and need
fixing, but my troff foo is not there.
2014-06-18 14:15:50 +00:00
christos 71faadbf26 fix second line of synopsis. 2014-06-18 14:12:20 +00:00
wiz 55d6e53ccb Sync usage with manpage. 2014-06-18 09:41:29 +00:00
wiz 9825fbace6 Sort options. Use Ss for non-standard headers. New sentence, new line.
Add missing Op.
2014-06-18 09:35:31 +00:00
christos a406f30e48 add -u (unbuffered output) after GNU sed. 2014-06-17 16:39:02 +00:00
christos 3a475c5557 PR/48883: Justin Cormack: Cope with systems that don't provide REG_STARTEND 2014-06-09 12:48:58 +00:00
christos 999f583a86 put back WARNS=6 2014-06-07 16:37:32 +00:00
christos 72feb6a6b9 PR/48880: Ryo ONODERA: Unapply one of our patches that broke 'G'. 2014-06-07 16:36:54 +00:00
ryoon 83acbdf28c Restore G command 2014-06-07 06:02:27 +00:00
wiz 15b8d8629f Renumber so that 3 follows 2. 2014-06-06 21:56:39 +00:00
christos 26bea92f67 After 2 comes... 2014-06-06 14:36:38 +00:00
joerg 6457787c51 usage is __dead. Kill useless sccsid. 2014-06-06 12:46:54 +00:00
christos 81af4b3486 Prefer setvbuf for those who have it. 2014-06-06 01:45:11 +00:00
christos 186a5e22f3 add netbsd 2014-06-06 00:14:55 +00:00
christos ef24ec4ecc Merge our changes. 2014-06-06 00:13:13 +00:00
christos 6a4e46c891 Handle a closing brace at the end of a command without a preceding semi-colon:
/foo/ {p;d}
2014-05-05 17:12:11 +00:00
joerg 9e69720425 Fix violations of the sequence point rule. 2013-06-28 15:04:35 +00:00
wiz d1e02d4ffe - Reference tr(1) in `SEE ALSO' section;
- bump date.

From Bug Hunting.
2013-05-29 15:05:43 +00:00
uwe 92646e4a5d Bump date for previous (PR #45981): the change ("c") command starts a
new cycle.
2013-03-17 21:13:04 +00:00
uwe 136610e484 The change ("c") command should start a new cycle.
Apply one line patch I posted in PR #45981 and document this in the
manual page.
2013-03-17 21:02:54 +00:00
msaitoh fd52732c92 Fix memory leak. 2012-12-14 08:15:44 +00:00
dholland 1ebcbda526 Improve previous change with better wording. 2012-10-04 19:28:36 +00:00
abs 070a35df41 "i.e." -> "i.e.," - from Snader_LB on IRC 2012-10-02 14:15:04 +00:00
christos fa19104dd8 compare the sed we just build with the installed one instead of bogus
paths.
2011-11-12 03:15:05 +00:00
tnn 0846a7629f Merge the following revisions from OpenBSD to let sed(1) handle
arbitrarily long lines (closes our PR bin/42261).
openbsd/usr.bin/sed/extern.h 1.5
openbsd/usr.bin/sed/main.c 1.13-1.15
openbsd/usr.bin/sed/misc.c 1.8
openbsd/usr.bin/sed/compile.c 1.25-1.28
openbsd/usr.bin/sed/defs.h 1.4
2010-02-19 16:35:27 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem d27a41bf3e Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:29:55 +00:00
wiz ccc14bc16a Sort options. Uppercase GNU. 2008-09-21 16:46:01 +00:00
perry 5a047c798a Add a -r flag that is an alias for -E, for compatibility with gnu sed. 2008-09-16 13:32:04 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
christos 80cd289830 provide _POSIX2_LINE_MAX if not there. 2007-04-17 20:30:29 +00:00
gdamore d9ac053afa Make TOOL_SED, to allow using our own sed in cases where the host's version
is busted in some way.

The TOOL_SED doesn't use TIOCGWINSIZE, and has some changes to include
nbtool_config.h in a cross build environment.

Combined with some other changes (not yet committed), this allows cross
compiling m68k code on Solaris 10/amd64.
2006-06-18 05:16:41 +00:00
mrg 95c96a60f2 remove sh3/GCC2 hack. 2006-06-02 19:44:48 +00:00
wiz cc9f77ff20 Clarify location of `}'. Requested by joerg. Bump date. 2006-05-14 14:34:49 +00:00
mrg 117693dfce when calling compile_tr() add (void *) to the 2nd argument's cast chain. 2006-05-11 17:18:19 +00:00
mrg 0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
christos 472d6fbe72 Coverity CID 878: Remove impossible tests against NULL pointers. 2006-04-02 03:47:26 +00:00
christos 999d9f8f32 Coverity CID 1181: Protect access against NULL. 2006-04-02 03:40:06 +00:00
grant 0bfb4106b0 no trailing comma at end of enum. 2004-11-20 06:40:01 +00:00
matt d0560e80c6 When adding text due to an a, c, or i command, don't eat the space(s) at
the beginning of the lines since the addition is supposed to be "verbatim".
Fix a comment for compile_text indicating it's also used for the 'c' command.
2004-11-17 22:17:54 +00:00
wiz b8c5588d79 Usage: Options before arguments; add -E. From Kouichirou Hiratsuka in PR 26255. 2004-07-13 12:11:06 +00:00
wiz 5df46dc9cc Sort options. From Kouichirou Hiratsuka in PR 26255 (slightly changed). 2004-07-13 12:09:29 +00:00
enami 15f238472a Yet another s/xmalloc/xrealloc/ so that large multi line text
can be added.
2004-07-09 23:43:07 +00:00