diff options
author | Matt Kraai | 2001-06-21 13:57:51 +0000 |
---|---|---|
committer | Matt Kraai | 2001-06-21 13:57:51 +0000 |
commit | 02c40a72b87c93e1b307cc26d79c6a3f39aa2f88 (patch) | |
tree | 069177a62d32ebea1f27881f11027a976198e4ff /editors | |
parent | fa2661f2e5a95f0efd1f019c8ad8742af7bcb55b (diff) | |
download | busybox-02c40a72b87c93e1b307cc26d79c6a3f39aa2f88.zip busybox-02c40a72b87c93e1b307cc26d79c6a3f39aa2f88.tar.gz |
Always apply commands with no specified range.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c index 73ed058..e7208b0 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -608,6 +608,10 @@ static void process_file(FILE *file) * entry point into sedding... */ if ( + /* no range necessary */ + (sed_cmds[i].beg_line == 0 && sed_cmds[i].end_line == 0 && + sed_cmds[i].beg_match == NULL && + sed_cmds[i].end_match == NULL) || /* this line number is the first address we're looking for */ (sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) || /* this line matches our first address regex */ |