install with -s
[unix-history] / usr / src / usr.bin / tee / tee.c
index d4b167f..0d3e9fa 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)tee.c       4.3 (Berkeley) %G%";
+static char *sccsid = "@(#)tee.c       4.4 (Berkeley) %G%";
 #endif
 /*
  * tee-- pipe fitting
 #endif
 /*
  * tee-- pipe fitting
@@ -72,7 +72,7 @@ char **argv;
                                r = 0;
                                if(w<=0) {
                                        stash(p);
                                r = 0;
                                if(w<=0) {
                                        stash(p);
-                                       return;
+                                       exit(0);
                                }
                        }
                        out[p++] = in[r++];
                                }
                        }
                        out[p++] = in[r++];