-
Notifications
You must be signed in to change notification settings - Fork 624
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
(fish shell) cannot run read command in .envrc #967
Comments
I think I found the cause for this and a workaround. If you add stty sane
echo -n "test:" && read test
echo $test This is because direnv is setting some different terminal line settings when running the
And this is what I get when I add
Key differences when running
The following settings are disabled in
This setting is enabled in
(Thanks ChatGPT for explaining all that to me). Also, I'm not sure if these differences are intentional or not. Perhaps a dev can shed some insight. I'd be happy to open a PR if someone could point me in the right direction. |
Thank you for your comment!
I don't know if it's appropriate to open the PR, but your comments and the workaround will be helpful to many. Thanks! |
Describe the bug
I set the
read
command in my .envrc file. But the command cannot run in fish shell; When I use it in bash, it can run without trouble.It apparently cannot accept keyboard inputs in fish shell. If you have any idea, could you give me, please?
To Reproduce
Expected behavior
I am supposed to be able to input keyboard events, but I don't know why I cannot do it using fish shell.
Environment
Additional context
Perhaps, it might be fish shell trouble, because bash can run without trouble. Also, My friend said zsh is also run without problem.
The text was updated successfully, but these errors were encountered: