echo $SHELL is wrong
See original GitHub issueecho $SHELL
returns /bin/zsh
but that is obviously false; it has none of the features of ZSH.
echo $BASH_VERSION
returns 3.2.57(1)-release
which matches macOs’s /bin/bash
version.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
echo $SHELL shows `/bin/bash` as the output even after ...
The SHELL environment variable is only set when you perform a full login, e.g. by logging out and logging in again, or by...
Read more >echo $SHELL is wrong · Issue #5041 · kubernetes-sigs/kui
echo $SHELL returns /bin/zsh but that is obviously false; it has none of the features of ZSH. echo $BASH_VERSION returns 3.2.57(1)-release ...
Read more >echo that outputs to stderr - bash - Stack Overflow
You could do this, which facilitates reading: >&2 echo "error". >&2 copies file descriptor #2 to file descriptor #1. Therefore, after this redirection...
Read more >What is wrong with “echo $(stuff)” or “echo `stuff`”? - Super User
I added this to indicate shells compatible and/or derived from sh (e.g. not powershell). It's not about any single shell; it's about the...
Read more >Wrong Shell for user and $SHELL value [duplicate] - Ask Ubuntu
The default shell of my user somehow changed to /bin/sh even though it's set in /etc/passwd to /bin/bash. I can't seem to be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It doesn’t seem to do a good job of this. I use fish, and every command I run in Kui has this before the output:
My best guess is that this is because, while the fish
aliases
file follows a bash-like format, the output of thealias
command does not:Would this be easy to fix with some regex magic before passing it off to Bash, or with error handling to dump aliases that don’t follow the correct format? Since everything is bounced to a new Bash shell, there doesn’t seem to be any way to avoid this or filter it out, and it makes Kui unusable for me.
UPDATE: I was able to get around it by converting all my aliases to functions by recreating them with
alias -s
and then deletingaliases.fish
:@k8s-triage-robot: Closing this issue.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.