break;
}
- /* if there's anything left of the line, print it */
- if (*hackline)
- fputs(hackline, stdout);
+ puts(hackline);
/* cleanup */
free(regmatch);
switch (sed_cmd->cmd) {
case 'p':
- fputs(line, stdout);
+ puts(line);
break;
case 'd':
* flag exists in the first place.
*/
- /* if the user specified that they didn't want anything printed (i.e. a -n
+ /* if the user specified that they didn't want anything printed (i.e., a -n
* flag and no 'p' flag after the s///), then there's really no point doing
* anything here. */
if (be_quiet && !sed_cmd->sub_p)