diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-07 18:32:18 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-07 18:32:18 +0000 |
commit | d3d209275896af223b3d3a62f2e9ae65b454dd1a (patch) | |
tree | fb0dd04f36f785df847fc030430b1e52614ecc5b /games | |
parent | 95ebf4bebbc67d7cc3cc35968c894076a2e81651 (diff) | |
download | FreeBSD-src-d3d209275896af223b3d3a62f2e9ae65b454dd1a.zip FreeBSD-src-d3d209275896af223b3d3a62f2e9ae65b454dd1a.tar.gz |
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
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions