From 7836470022df6b9b94386125d9dafaa216f58478 Mon Sep 17 00:00:00 2001 From: zacheiss Date: Tue, 31 Mar 2009 19:13:09 +0000 Subject: [PATCH] tcsh is dead. Long live bash. --- clients/addusr/addusr.c | 4 ++-- clients/moira/user.c | 4 ++-- clients/mrtest/scripts/users.sc | 2 +- clients/stanley/stanley.c | 2 +- man/addusr.1 | 4 ++-- regtape/common.pc | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/clients/addusr/addusr.c b/clients/addusr/addusr.c index 8ee440e7..e31d6aa2 100644 --- a/clients/addusr/addusr.c +++ b/clients/addusr/addusr.c @@ -33,9 +33,9 @@ struct owner_type { #define M_NONE 4 #ifdef ATHENA -#define DEFAULT_SHELL "/bin/athena/tcsh" +#define DEFAULT_SHELL "/bin/athena/bash" #else -#define DEFAULT_SHELL "/bin/csh" +#define DEFAULT_SHELL "/bin/bash" #endif #define DEFAULT_WINCONSOLESHELL "cmd" diff --git a/clients/moira/user.c b/clients/moira/user.c index 71b4d3a4..0ed1762e 100644 --- a/clients/moira/user.c +++ b/clients/moira/user.c @@ -42,9 +42,9 @@ struct mqelem *GetUserBySponsor(char *type, char *name); #define ID 4 #ifdef ATHENA -#define DEFAULT_SHELL "/bin/athena/tcsh" +#define DEFAULT_SHELL "/bin/athena/bash" #else -#define DEFAULT_SHELL "/bin/csh" +#define DEFAULT_SHELL "/bin/bash" #endif #define DEFAULT_CLASS "?" diff --git a/clients/mrtest/scripts/users.sc b/clients/mrtest/scripts/users.sc index c44090e3..199def51 100644 --- a/clients/mrtest/scripts/users.sc +++ b/clients/mrtest/scripts/users.sc @@ -60,7 +60,7 @@ qy gubl tested qy _help uush qy gubl tested -qy uush tested /bin/tcsh +qy uush tested /bin/bash qy gubl tested qy _help uust diff --git a/clients/stanley/stanley.c b/clients/stanley/stanley.c index f34f6117..e12cf334 100644 --- a/clients/stanley/stanley.c +++ b/clients/stanley/stanley.c @@ -342,7 +342,7 @@ int main(int argc, char **argv) if (shell) argv[U_SHELL] = shell; else - argv[U_SHELL] = "/bin/athena/tcsh"; + argv[U_SHELL] = "/bin/athena/bash"; if (winshell) argv[U_WINCONSOLESHELL] = winshell; else diff --git a/man/addusr.1 b/man/addusr.1 index 0bc976bc..198f790e 100644 --- a/man/addusr.1 +++ b/man/addusr.1 @@ -51,8 +51,8 @@ in this invocation. If not specified, \fI0 (registerable)\fR will be used. .IP \fB-shell\ \fIshell\ \fRor\ \fB-h\ \fIshell\fR: This specifies the login shell that will be stored for all users added in this invocation. If not specified, a default will be used. At MIT -Athena the default is \fI/bin/athena/tcsh\fR, elsewhere it is likely to be -\fI/bin/csh\fR. +Athena the default is \fI/bin/athena/bash\fR, elsewhere it is likely to be +\fI/bin/bash\fR. .IP \fB-winshell\ \fIshell\ \fRor\ \fB-w\ \fIshell\fR: This specifies the Windows console shell that will be used for all users added in this invocation. If not specified, a default value of diff --git a/regtape/common.pc b/regtape/common.pc index 74299bca..6dabac2e 100644 --- a/regtape/common.pc +++ b/regtape/common.pc @@ -282,7 +282,7 @@ void newuser(struct entry *e, int secure) fmodby, fmodwith, potype, pmodtime, pmodby, pmodwith, xname, xdept, xtitle, xaddress, xphone1, xphone2, xmodtime, secure, created, creator, winhomedir, winprofiledir, sponsor_type, sponsor_id, expiration) - VALUES (:login, :users_id, :uid, '/bin/athena/tcsh', 'cmd', + VALUES (:login, :users_id, :uid, '/bin/athena/bash', 'cmd', NVL(:last, CHR(0)), NVL(:first, CHR(0)), NVL(:middle, CHR(0)), :st, NVL(:id, CHR(0)), NVL(:type, CHR(0)), SYSDATE, :who, :prog, NVL(:name, CHR(0)), NVL(:dept, CHR(0)), NVL(:haddr, CHR(0)), -- 2.45.1