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
BSD 4_3_Reno release
[unix-history]
/
usr
/
src
/
usr.bin
/
apply
/
apply.c
diff --git
a/usr/src/usr.bin/apply/apply.c
b/usr/src/usr.bin/apply/apply.c
index
bf6d6b1
..
d02eb66
100644
(file)
--- a/
usr/src/usr.bin/apply/apply.c
+++ b/
usr/src/usr.bin/apply/apply.c
@@
-11,7
+11,7
@@
char copyright[] =
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)apply.c 5.
1 (Berkeley) %G%
";
+static char sccsid[] = "@(#)apply.c 5.
3 (Berkeley) 5/11/89
";
#endif not lint
/*%cc -s -O %
#endif not lint
/*%cc -s -O %
@@
-21,7
+21,9
@@
static char sccsid[] = "@(#)apply.c 5.1 (Berkeley) %G%";
* apply -2 cmp A1 B1 A2 B2 compares A's with B's
* apply "ln %1 /usr/fred/dir" * duplicates a directory
*/
* apply -2 cmp A1 B1 A2 B2 compares A's with B's
* apply "ln %1 /usr/fred/dir" * duplicates a directory
*/
+#include <paths.h>
#include <stdio.h>
#include <stdio.h>
+
char *cmdp;
#define NCHARS 512
char cmd[512];
char *cmdp;
#define NCHARS 512
char cmd[512];
@@
-48,7
+50,7
@@
main(argc, argv)
--argc; ++argv;
}
if(argc<2){
--argc; ++argv;
}
if(argc<2){
- fprintf(stderr, "usage: apply [-
14] [-a%
] cmd arglist\n");
+ fprintf(stderr, "usage: apply [-
#] [-ac
] cmd arglist\n");
exit(1);
}
argc -= 2;
exit(1);
}
argc -= 2;
@@
-125,7
+127,7
@@
char *s;
char *shell = getenv("SHELL");
if ((pid = fork()) == 0) {
char *shell = getenv("SHELL");
if ((pid = fork()) == 0) {
- execl(shell ? shell :
"/bin/sh"
, "sh", "-c", s, 0);
+ execl(shell ? shell :
_PATH_BSHELL
, "sh", "-c", s, 0);
_exit(127);
}
if(pid == -1){
_exit(127);
}
if(pid == -1){