[BusyBox-cvs] busybox/editors sed.c,1.144,1.145
Glenn McGrath
bug1 at busybox.net
Mon Sep 15 06:28:47 UTC 2003
Update of /var/cvs/busybox/editors
In directory winder:/tmp/cvs-serv7581/editors
Modified Files:
sed.c
Log Message:
Add a test for the 'P' command and fix current implementation so it
doesnt permanently modify the pattern space.
Index: sed.c
===================================================================
RCS file: /var/cvs/busybox/editors/sed.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- sed.c 15 Sep 2003 06:12:53 -0000 1.144
+++ sed.c 15 Sep 2003 06:28:40 -0000 1.145
@@ -857,7 +857,11 @@
if (tmp) {
*tmp = '\0';
+ puts(pattern_space);
+ *tmp = '\n';
+ break;
}
+ /* Fall Through */
}
case 'p': /* Write the current pattern space to output */
puts(pattern_space);
More information about the busybox-cvs
mailing list