Juli Mallett
90f7fe63e9
Oops, update usage() to have -i.
2002-05-07 23:33:44 +00:00
Juli Mallett
5d16412db7
Add handling for any nil-length string passed to -i for the backup extension.
...
Add a note that this is kinda-sorta dangerous to the manual page.
2002-05-07 23:32:26 +00:00
Juli Mallett
d88e9d841a
Un-shadow the `fname' variable.
2002-05-07 23:06:47 +00:00
Juli Mallett
839af0c103
Add a -i option to sed(1) to do inplace editing, to give us an alternative to
...
Perl for such things. The key difference to Perl is that a backup extension
*MUST* be specified, because on one hand it isn't recommended to have options
which optionally take a parameter, and on the other hand, it'd be slightly
unpleasent to implement proper handling for that.
The difference between this and the version posted to developers@ is that it
does handle multiple files in argv after the getopt(3) handling "correctly",
in that the inplace editing-specific code has been moved out to a function,
and that function is used beyond the first file in our linked list.
This option has been documented as FreeBSD-specific in the manpage.
Reviewed by: developers@ (got feedback from: des, fanf, sobomax, roberto,
obrien)
MFC after: 1 week
2002-05-07 18:32:18 +00:00
Warner Losh
3f330d7d1a
remove __P
2002-03-22 01:42:45 +00:00
Mark Murray
e74bf75f1c
WARNS=2 partial fix; use NO_WERROR to protect against some hard-to-fix warnings.
...
Use __FBSDID(), kill register keyword.
2001-12-12 23:20:16 +00:00
David E. O'Brien
8e33c0a0f6
Expand xmalloc in-place, along with xrealloc; which wasn't even ANSI in its
...
implementation.
2001-07-24 14:05:21 +00:00
Nick Sayer
f6c7a9efb8
Small style fix '=' -> ' = '
2000-05-11 20:15:16 +00:00
Nick Sayer
e6121e72f6
Fix compatibility issue in sed. Do so by explicitely adding a
...
newline to the end of any -e argument.
PR: bin/18474
2000-05-11 17:01:52 +00:00
Brian Feldman
175de1e677
Add a new flag: -E enables "extended" regular expressions.
2000-03-19 19:41:53 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Archie Cobbs
c56690ef7b
Fix a new bug introduced by the previous bug fix
1998-12-08 21:29:22 +00:00
Philippe Charnier
73a08bb2ad
Remove local redefinition for err(). Add usage().
1997-08-11 07:21:08 +00:00
Warner Losh
1c8af87873
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Wolfram Schneider
5f4cf81e9d
fix C programmer's bug number 12.2
...
submitted by: bruce
1996-11-17 02:16:34 +00:00
Joerg Wunsch
771301de24
Fix the C programmer's bug #1 : EOF is of type int', not
char'.
...
Strong 2.2 candidate.
Submitted by: wosch
1996-11-17 00:22:54 +00:00
Andrey A. Chernov
726aebe5e0
Localize it
...
8bit cleanup
1996-08-11 17:46:35 +00:00
Rodney W. Grimes
2828ae663a
Fix spelling error (scipt -> script).
...
Submitted by: <jhawk@MIT.EDU>
Obtained from: NetBSD-bugs mailling list
1995-02-23 17:46:35 +00:00
Rodney W. Grimes
9b50d90275
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00