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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user