mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Bugfix for: echo '123456789' | sed 's/./|&/5'
This commit is contained in:
parent
239369b368
commit
d35c0efddb
@ -627,7 +627,7 @@ static int do_subst_command(sed_cmd_t *sed_cmd, char **line)
|
||||
end of match and continue */
|
||||
if(sed_cmd->which_match && sed_cmd->which_match!=match_count) {
|
||||
for(i=0;i<bbg.regmatch[0].rm_eo;i++)
|
||||
pipe_putc(oldline[i]);
|
||||
pipe_putc(*(oldline++));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user