cvsdist 08c581
diff -u at-3.1.8/at.c.SHELL at-3.1.8/at.c
cvsdist 08c581
--- at-3.1.8/at.c.SHELL	2003-12-09 17:03:28.000000000 +1000
cvsdist 08c581
+++ at-3.1.8/at.c	2003-12-09 17:03:28.000000000 +1000
cvsdist 08c581
@@ -433,6 +433,8 @@
cvsdist 08c581
     fprintf(fp, " || {\n\t echo 'Execution directory "
cvsdist 08c581
 	    "inaccessible' >&2\n\t exit 1\n}\n");
cvsdist 08c581
 
cvsdist 08c581
+    fprintf(fp, "${SHELL:-/bin/sh} << `(dd if=/dev/urandom count=200 bs=1 2>/dev/null|LC_ALL=C tr -d -c '[:alnum:]')`\n\n");
cvsdist 08c581
+
cvsdist 08c581
     istty = isatty(fileno(stdin));
cvsdist 08c581
     if (istty) {
cvsdist 08c581
 	fprintf(stderr, "at> ");
cvsdist 08c581
@@ -854,10 +856,11 @@
cvsdist 08c581
 	/* POSIX.2 allows the shell specified by the user's SHELL environment
cvsdist 08c581
 	   variable, the login shell from the user's password database entry,
cvsdist 08c581
 	   or /bin/sh to be the command interpreter that processes the at-job.
cvsdist 08c581
-	   It also alows a warning diagnostic to be printed.  Because of the
cvsdist 08c581
+	   It also allows a warning diagnostic to be printed.  Because of the
cvsdist 08c581
 	   possible variance, we always output the diagnostic. */
cvsdist 08c581
 
cvsdist 08c581
-	fprintf(stderr, "warning: commands will be executed using /bin/sh\n");
cvsdist 08c581
+/* 	fprintf(stderr, "warning: commands will be executed using /bin/sh\n");
cvsdist 08c581
+ */
cvsdist 08c581
 
cvsdist 08c581
 	writefile(timer, queue);
cvsdist 08c581
 	break;