Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356686

Summary: AutotoolsNewMakeGenerator and InvokeAction assume sh is bash
Product: [Tools] CDT Reporter: Rusty Burchfield <GICodeWarrior>
Component: cdt-autotoolsAssignee: Jeff Johnston <jjohnstn>
Status: CLOSED DUPLICATE QA Contact: Jeff Johnston <jjohnstn>
Severity: normal    
Priority: P3 CC: akurtakov, cdtdoug
Version: 8.1.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Patch to change SHELL_COMMAND constants from "sh" to "bash". none

Description Rusty Burchfield CLA 2011-09-04 16:50:07 EDT
Created attachment 202723 [details]
Patch to change SHELL_COMMAND constants from "sh" to "bash".

The autotools command execution in these classes assume sh is bash.
org.eclipse.linuxtools.internal.cdt.autotools.core.AutotoolsNewMakeGenerator
org.eclipse.linuxtools.internal.cdt.autotools.ui.actions.InvokeAction

For example:
http://www.eclipse.org/forums/index.php/m/695287/

Notably, sh is not bash on Ubuntu.

The attached patch "fixes" the problem by specifying bash explicitly.  Though, I am not sure why a shell is needed in the first place.

This may or may not cause issues with the Windows compatibility code contained in these files.
Comment 1 Jeff Johnston CLA 2012-07-19 17:24:17 EDT
The command processing in Autotools has been changed to use sh -c for all commands to work on Ubuntu.  See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=371277

Closing as duplicate.

*** This bug has been marked as a duplicate of bug 371277 ***