diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/sed.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/sed.c b/src/cmd/sed.c index ddbcbf81..a463e071 100644 --- a/src/cmd/sed.c +++ b/src/cmd/sed.c @@ -137,6 +137,7 @@ Rune *hspend = holdsp; /* End of hold data */ int nflag; /* Command line flags */ int gflag; +int lflag; int dolflag; /* Set when at true EOF */ int sflag; /* Set when substitution done */ @@ -234,6 +235,9 @@ main(int argc, char **argv) case 'g': gflag++; continue; + case 'l': + lflag++; + continue; default: fprint(2, "sed: Unknown flag: %c\n", ARGC()); continue; @@ -1315,6 +1319,8 @@ putline(Biobuf *bp, Rune *buf, int n) while (n--) Bputrune(bp, *buf++); Bputc(bp, '\n'); + if(lflag) + Bflush(bp); } int |