here documents not closed in at; bug report 4.3BSD-tahoe/usr.bin/20
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 28 Jun 1989 00:19:19 +0000 (16:19 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 28 Jun 1989 00:19:19 +0000 (16:19 -0800)
SCCS-vsn: usr.bin/at/at/at.c 5.10

usr/src/usr.bin/at/at/at.c

index 8c33541..f332646 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)at.c       5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)at.c       5.10 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -381,9 +381,8 @@ char **argv;
        /*
         * Put in a line to run the proper shell using the rest of
         * the file as input.  Note that 'exec'ing the shell will
        /*
         * Put in a line to run the proper shell using the rest of
         * the file as input.  Note that 'exec'ing the shell will
-        * cause sh() to leave a /tmp/sh### file around.  This line
-        * depends on the shells allowing EOF to end tagged input.  The
-        * quotes also guarantee a quoting of the lines before EOF.
+        * cause sh() to leave a /tmp/sh### file around.  The quotes
+        * also guarantee a quoting of the lines before EOF.
         */
        fprintf(spoolfile, "%s << 'QAZWSXEDCRFVTGBYHNUJMIKOLP'\n", shell);
 
         */
        fprintf(spoolfile, "%s << 'QAZWSXEDCRFVTGBYHNUJMIKOLP'\n", shell);
 
@@ -394,9 +393,8 @@ char **argv;
        while (fgets(line, LINSIZ, inputfile) != NULL)
                fputs(line, spoolfile);
 
        while (fgets(line, LINSIZ, inputfile) != NULL)
                fputs(line, spoolfile);
 
-       /*
-        * Close all files and change the mode of the spoolfile.
-        */
+       /* don't put on single quotes, csh doesn't like it */
+       fprintf(spoolfile, "QAZWSXEDCRFVTGBYHNUJMIKOLP\n");
        fclose(inputfile);
        fclose(spoolfile);
 
        fclose(inputfile);
        fclose(spoolfile);