=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/main.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/sed/main.c 2006/10/09 00:23:57 1.10 --- src/usr.bin/sed/main.c 2007/03/20 06:07:57 1.11 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.10 2006/10/09 00:23:57 tedu Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.11 2007/03/20 06:07:57 ray Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 38,44 **** "@(#) Copyright (c) 1992, 1993\n\ The Regents of the University of California. All rights reserved.\n"; /* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */ ! static const char rcsid[] = "$OpenBSD: main.c,v 1.10 2006/10/09 00:23:57 tedu Exp $"; #endif /* not lint */ #include --- 38,44 ---- "@(#) Copyright (c) 1992, 1993\n\ The Regents of the University of California. All rights reserved.\n"; /* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */ ! static const char rcsid[] = "$OpenBSD: main.c,v 1.11 2007/03/20 06:07:57 ray Exp $"; #endif /* not lint */ #include *************** *** 104,110 **** int c, fflag; fflag = 0; ! while ((c = getopt(argc, argv, "ae:f:n")) != -1) switch (c) { case 'a': aflag = 1; --- 104,110 ---- int c, fflag; fflag = 0; ! while ((c = getopt(argc, argv, "ae:f:nu")) != -1) switch (c) { case 'a': aflag = 1; *************** *** 120,129 **** case 'n': nflag = 1; break; default: case '?': (void)fprintf(stderr, ! "usage:\tsed script [-an] [file ...]\n\tsed [-an] [-e script] ... [-f script_file] ... [file ...]\n"); exit(1); } argc -= optind; --- 120,132 ---- case 'n': nflag = 1; break; + case 'u': + setlinebuf(stdout); + break; default: case '?': (void)fprintf(stderr, ! "usage:\tsed script [-anu] [file ...]\n\tsed [-anu] [-e script] ... [-f script_file] ... [file ...]\n"); exit(1); } argc -= optind;