projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
file reorg, pathnames.h, paths.h
[unix-history]
/
usr
/
src
/
usr.bin
/
mail
/
cmd3.c
diff --git
a/usr/src/usr.bin/mail/cmd3.c
b/usr/src/usr.bin/mail/cmd3.c
index
1d291b0
..
45bd823
100644
(file)
--- a/
usr/src/usr.bin/mail/cmd3.c
+++ b/
usr/src/usr.bin/mail/cmd3.c
@@
-16,7
+16,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)cmd3.c 5.2
0
(Berkeley) %G%";
+static char sccsid[] = "@(#)cmd3.c 5.2
1
(Berkeley) %G%";
#endif /* not lint */
#include "rcv.h"
#endif /* not lint */
#include "rcv.h"
@@
-42,7
+42,7
@@
shell(str)
if (bangexp(cmd) < 0)
return 1;
if ((shell = value("SHELL")) == NOSTR)
if (bangexp(cmd) < 0)
return 1;
if ((shell = value("SHELL")) == NOSTR)
- shell = SHELL;
+ shell =
_PATH_C
SHELL;
(void) run_command(shell, 0, -1, -1, "-c", cmd, NOSTR);
(void) signal(SIGINT, sigint);
printf("!\n");
(void) run_command(shell, 0, -1, -1, "-c", cmd, NOSTR);
(void) signal(SIGINT, sigint);
printf("!\n");
@@
-60,7
+60,7
@@
dosh(str)
char *shell;
if ((shell = value("SHELL")) == NOSTR)
char *shell;
if ((shell = value("SHELL")) == NOSTR)
- shell = SHELL;
+ shell =
_PATH_C
SHELL;
(void) run_command(shell, 0, -1, -1, NOSTR);
(void) signal(SIGINT, sigint);
putchar('\n');
(void) run_command(shell, 0, -1, -1, NOSTR);
(void) signal(SIGINT, sigint);
putchar('\n');
@@
-130,8
+130,8
@@
help()
register c;
register FILE *f;
register c;
register FILE *f;
- if ((f = fopen(
HELPFILE
, "r")) == NULL) {
- perror(
HELPFILE
);
+ if ((f = fopen(
_PATH_HELP
, "r")) == NULL) {
+ perror(
_PATH_HELP
);
return(1);
}
while ((c = getc(f)) != EOF)
return(1);
}
while ((c = getc(f)) != EOF)