include fixes
[unix-history] / usr / src / bin / csh / init.c
index 67fab3a..cc9f9bb 100644 (file)
@@ -1,4 +1,4 @@
-static char *sccsid = "@(#)init.c 4.1 %G%";
+static char *sccsid = "@(#)init.c 4.3 %G%";
 
 #include "sh.local.h"
 
 
 #include "sh.local.h"
 
@@ -32,7 +32,9 @@ extern        int dolet();
 extern int dolimit();
 extern int dologin();
 extern int dologout();
 extern int dolimit();
 extern int dologin();
 extern int dologout();
+#ifdef NEWGRP
 extern int donewgrp();
 extern int donewgrp();
+#endif
 extern int donice();
 extern int donotify();
 extern int donohup();
 extern int donice();
 extern int donotify();
 extern int donohup();
@@ -114,7 +116,9 @@ struct      biltins {
        "limit",        dolimit,        0,      3,
        "login",        dologin,        0,      1,
        "logout",       dologout,       0,      0,
        "limit",        dolimit,        0,      3,
        "login",        dologin,        0,      1,
        "logout",       dologout,       0,      0,
+#ifdef NEWGRP
        "newgrp",       donewgrp,       1,      1,
        "newgrp",       donewgrp,       1,      1,
+#endif
        "nice",         donice,         0,      INF,
        "nohup",        donohup,        0,      INF,
        "notify",       donotify,       0,      INF,
        "nice",         donice,         0,      INF,
        "nohup",        donohup,        0,      INF,
        "notify",       donotify,       0,      INF,
@@ -129,7 +133,7 @@ struct      biltins {
        "set",          doset,          0,      INF,
        "setenv",       dosetenv,       2,      2,
        "shift",        shift,          0,      1,
        "set",          doset,          0,      INF,
        "setenv",       dosetenv,       2,      2,
        "shift",        shift,          0,      1,
-       "source",       dosource,       1,      1,
+       "source",       dosource,       1,      2,
        "stop",         dostop,         1,      INF,
        "suspend",      dosuspend,      0,      0,
        "switch",       doswitch,       1,      INF,
        "stop",         dostop,         1,      INF,
        "suspend",      dosuspend,      0,      0,
        "switch",       doswitch,       1,      INF,