From 1d3135677f1f49b9cc87ebf01f1c4eaab3c450f4 Mon Sep 17 00:00:00 2001 From: harlekin Date: Fri, 25 Oct 2002 18:57:47 +0000 Subject: is there is a real bash installed, take that instead of sh --- (limited to 'noncore/apps/opie-console') diff --git a/noncore/apps/opie-console/MyPty.cpp b/noncore/apps/opie-console/MyPty.cpp index 984e347..2570826 100644 --- a/noncore/apps/opie-console/MyPty.cpp +++ b/noncore/apps/opie-console/MyPty.cpp @@ -67,6 +67,7 @@ #include #include #include +#include #include #include @@ -142,6 +143,11 @@ void MyPty::error() void MyPty::start() { char* cmd = "/bin/sh"; + + if ( QFile::exists( "/bin/bash" ) ) { + char* cmd = "/bin/bash"; + } + QStrList lis; int r =run(cmd, lis, 0, 0); r = r; -- cgit v0.9.0.2