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

BUG FIX: start bash insteed zsh #34

Closed
wants to merge 1 commit into from
Closed

BUG FIX: start bash insteed zsh #34

wants to merge 1 commit into from

Conversation

Diwakar-Gupta
Copy link

Reference Issues/PRs

Fixes #33

Description

Solution 2 as mentioned in issue #33
SHELL is changed to /usr/bin/bash when default shell is zsh.

implement

SHELL = os.getenv("SHELL", "/usr/bin/bash")
if SHELL.endswith('/zsh'):
SHELL="/usr/bin/bash"

Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the pull request. However overriding the SHELL env var ourselves is not the right approach. The point of having

SHELL = os.getenv("SHELL", "bash")

is to let one pass any shell they want to use when invoking the script.

In the case of zsh you may just do (assuming you've bash installed):

SHELL=bash ./aquarium.py --your options ...

This pull request was closed.
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.

BUG: zsh not supported
2 participants