-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Entering Bash Subshell Results in Functions in prompt.sh
and Prompt Hooks Not Being Found
#766
Comments
I believe this problem (at least in #763) is due to permissions in
Could this affect this issue as well? Fix: RUN chmod 755 /etc/profile.d/* should be added to the Dockerfile's |
@drmikecrowe changing the permissions of the files in |
This is one of many things that could be better documented (#768) about Geodesic. I prefer to view it as a limitation rather than a bug. Geodesic is a complex, richly featured toolkit, built using standard Linux tools. It is not an app running under Java or Python or .NET, but has features competitive with apps that do. It does most of it with However, setting up all those bash functions takes a significant amount of time, and they can actually cause problems when running scripts or other commands that run subshells. So Geodesic only sets up all the functions when running:
In other words, lack of a custom prompt when you run plain Granted, Geodesic could behave in a more friendly way in this situation, but it is not obvious to me what the best behavior would be. For example, if we output a warning, that output could end up messing up a script. Maybe we could just change the prompt to @osterman what do you think? In any case, the preferred usage of Geodesic is that when you want to start an interactive subshell, you do so by running
|
Found a bug? Maybe our Slack Community can help.
Describe the Bug
Spawning an interactive subshell via
bash
results in a broken command line prompt and other errors.[Edit: yes, that is how Geodesic works. To spawn an interactive subshell, use
bash -l
]Steps to Reproduce
Steps to reproduce the behavior:
bash
Expected Behavior
Functions in
prompt.sh
and prompt hooks should be properly sourced when entering a subshell, however bash complains about functions inprompt.sh
and prompt hooks not being found (see below).Screenshots / Logs
(without a valid kubeconfig set via
KUBECONFIG
)(with a valid kubeconfig set via
KUBECONFIG
)Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
0.149.1
Additional Context
kube-ps1
#763The text was updated successfully, but these errors were encountered: