Explicitly start bash when opening a new tab, since other shells may not handle the "--login" option.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues
2010-08-16 09:12:34 +00:00
parent fbebcdd42d
commit 3ea58911f9
+2 -1
View File
@@ -14,6 +14,7 @@
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <iostream>
#include <new> #include <new>
#include <signal.h> #include <signal.h>
#include <string.h> #include <string.h>
@@ -335,7 +336,7 @@ initialize_termios(struct termios &tio)
status_t status_t
Shell::_Spawn(int row, int col, const char *encoding, int argc, const char **argv) Shell::_Spawn(int row, int col, const char *encoding, int argc, const char **argv)
{ {
const char *kDefaultShellCommand[] = { "/bin/sh", "--login", NULL }; const char *kDefaultShellCommand[] = { "/bin/bash", "--login", NULL };
if (argv == NULL || argc == 0) { if (argv == NULL || argc == 0) {
argv = kDefaultShellCommand; argv = kDefaultShellCommand;