From 7ca8e2fd4e2cb712d6bac31e3c00a261a4e28102 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Sep 2022 18:08:20 -0700 Subject: Oops, assumed bash, using sh now. It should use the SHELL environment variable, and have a backup list, and use shells as defined by the buildscript. --- src/context.cpp | 2 +- src/functionexecute.cpp | 2 +- src/functiongetmakedeps.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context.cpp b/src/context.cpp index b9c215a..6e27256 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -238,7 +238,7 @@ Bu::String Context::expand( const Bu::String &sInS ) { //sio << "Executing command: >>>" << sCmd << "<<<" << sio.nl; Process p( Process::StdOut, - "/bin/bash", "/bin/bash", "-c", sCmd.getStr(), NULL + "/bin/sh", "/bin/sh", "-c", sCmd.getStr(), NULL ); char buf[4096]; do diff --git a/src/functionexecute.cpp b/src/functionexecute.cpp index 8d87047..17f49eb 100644 --- a/src/functionexecute.cpp +++ b/src/functionexecute.cpp @@ -35,7 +35,7 @@ Variable FunctionExecute::call( Variable &/*input*/, VarList lParams ) // TODO This is lame, really lame, we need to exec on our own and process // output appropriately. pContext->getView()->cmdStarted( lParams.first().getString() ); - Process pCmd( Process::Both, "/bin/bash", "/bin/bash", "-c", + Process pCmd( Process::Both, "/bin/sh", "/bin/sh", "-c", lParams.first().getString().getStr(), NULL ); String sStdOut, sStdErr; do diff --git a/src/functiongetmakedeps.cpp b/src/functiongetmakedeps.cpp index a44f653..69003ba 100644 --- a/src/functiongetmakedeps.cpp +++ b/src/functiongetmakedeps.cpp @@ -33,7 +33,7 @@ Bu::String FunctionGetMakeDeps::getName() const Variable FunctionGetMakeDeps::call( Variable &/*input*/, VarList lParams ) { pContext->getView()->cmdStarted( lParams.first().getString().getStr() ); - Process p( Process::StdOut, "/bin/bash", "/bin/bash", "-c", + Process p( Process::StdOut, "/bin/sh", "/bin/sh", "-c", lParams.first().getString().getStr(), NULL ); // Gather all data from the command. -- cgit v1.2.3