| 1 |
< |
/* Copyright (c) 1995 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1996 Regents of the University of California */ |
| 2 |
|
|
| 3 |
|
#ifndef lint |
| 4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
| 175 |
|
argv[i] = vval(NEXTANIM); /* just change input file */ |
| 176 |
|
if (!silent) |
| 177 |
|
printargs(argc, argv, stdout); |
| 178 |
< |
execvp(progname, argv); /* pass to next */ |
| 179 |
< |
quit(1); /* shouldn't return */ |
| 178 |
> |
if ((argv[0] = getpath(progname,getenv("PATH"),X_OK)) == NULL) |
| 179 |
> |
fprintf(stderr, "%s: command not found\n", progname); |
| 180 |
> |
else |
| 181 |
> |
execv(progname, argv); |
| 182 |
> |
quit(1); |
| 183 |
|
} |
| 184 |
|
quit(0); |
| 185 |
|
userr: |