Skip to content

Comments

Choose shell#1243

Merged
thatch45 merged 5 commits intosaltstack:developfrom
jhutchins:choose_shell
May 10, 2012
Merged

Choose shell#1243
thatch45 merged 5 commits intosaltstack:developfrom
jhutchins:choose_shell

Conversation

@jhutchins
Copy link
Contributor

I saw the disclaimer on the shell the could be used in cmd state and it made me mad and I thought to myself, "Why!?" So I decided to fix it. After looking at the code I was more confused, since the functionality is already there. I added a little bit of logic checking that a specified shell exists and is executable in cmdmod since shells can be defined and I modified the comments so that the generated documentation will reflect that.

Was there a reason that you were saying people where limited to /bin/sh for executing commands?

@SEJeff
Copy link
Contributor

SEJeff commented May 10, 2012

I believe the idea was a shell grain. That way on FreeBSD (for instance) it could default to bash if it is installed and otherwise use ksh, then on Linux default to bash if it is installed.

@thatch45
Copy link
Contributor

This looks good, I will fix the message thing

thatch45 added a commit that referenced this pull request May 10, 2012
@thatch45 thatch45 merged commit 717672f into saltstack:develop May 10, 2012
@jhutchins
Copy link
Contributor Author

@thatch45 Were you wanting to add a grain for shell and using that, because I have a patch to add the grain and then partially replace shell defaults with that grain.

@thatch45
Copy link
Contributor

That would be nice, yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants