Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHE-2811 Launch all user commands by using bash if shell is not defined. #2838

Merged
merged 1 commit into from
Oct 20, 2016

Conversation

benoitf
Copy link
Contributor

@benoitf benoitf commented Oct 19, 2016

What does this PR do?

For example now that sh is default one, previous user commands may fail. If the commands are required to be launched with sh, then /bin/sh will need to be defined as shell invoker but default is kept to bash

What issues does this PR fix or reference?

#2811

Previous behavior

it is now executing all user + internal commands with /bin/sh which may fail for user commands if user has a previous command that was using bash
so "all internal commands" use sh by default, user commands use bash

New behavior

Keep bash for user defined method unless the attribute "shell" is overrided to be an other interpreter

Change-Id: I19e2065bfd9e6ee93a5d899cb67cd5b9ece76f62
Signed-off-by: Florent BENOIT [email protected]

For example now that sh is default one, previous user commands may fail. If the commands are launched on sh, then /bin/sh will need to be defined as shell invoker

Change-Id: I19e2065bfd9e6ee93a5d899cb67cd5b9ece76f62
Signed-off-by: Florent BENOIT <[email protected]>
@benoitf benoitf self-assigned this Oct 19, 2016
@benoitf benoitf added this to the 5.0.0-M6 milestone Oct 19, 2016
@benoitf benoitf added severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Oct 19, 2016
@benoitf
Copy link
Contributor Author

benoitf commented Oct 19, 2016

@vparfonov ?

@codenvy-ci
Copy link

Build # 748 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/748/ to view the results.

@benoitf benoitf merged commit 2dcbb23 into master Oct 20, 2016
@benoitf benoitf deleted the CHE-2811 branch October 20, 2016 16:27
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Oct 20, 2016
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…pse-che#2838)

For example now that sh is default one, previous user commands may fail. If the commands are launched on sh, then /bin/sh will need to be defined as shell invoker

Change-Id: I19e2065bfd9e6ee93a5d899cb67cd5b9ece76f62
Signed-off-by: Florent BENOIT <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants