static char adduser_rcsid[] = "$Header$";
#endif
+#ifdef ATHENA
+#define DEFAULT_SHELL "/bin/athena/tcsh"
+#else
+#define DEFAULT_SHELL "/bin/csh"
+#endif
+
/* flags from command line */
char *class, *comment, *status_str, *shell, *filename;
int reg_only, reg, verbose, nodupcheck;
reg_only = reg = verbose = lineno = nodupcheck = errors = 0;
server = NULL;
filename = "-";
- shell = "/bin/csh";
+ shell = DEFAULT_SHELL;
class = "TEMP";
comment = "";
status_str = "0";
verbose++;
else if (argis("d","nodupcheck"))
nodupcheck++;
- else if (argis("S","server"))
+ else if (argis("S","server") || argis("db","database"))
if (arg - argv < argc - 1) {
++arg;
server = *arg;
fprintf(stderr, " -c | -class class (default TEMP)\n");
fprintf(stderr, " -C | -comment \"comment\" (default \"\")\n");
fprintf(stderr, " -s | -status status (default 0)\n");
- fprintf(stderr, " -h | -shell shell (default /bin/csh)\n");
+ fprintf(stderr, " -h | -shell shell (default %s)\n", DEFAULT_SHELL);
fprintf(stderr, " -r | -reg_only\n");
fprintf(stderr, " -R | -register (and add to database)\n");
fprintf(stderr, " -v | -verbose\n");