-
Notifications
You must be signed in to change notification settings - Fork 386
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
[Error] piping certain output into an empty Fish script results in various Fish errors #1292
Comments
Can confirm, running into this as well. Though it's at all prompts based on the way fish handles sourcing config. Same behavior, slightly different context. I'll try to find what's unique about my setup that causes this. The specific error I get:
My git config has pager set to:
|
In light of 89luca89/distrobox#1292, and some other grievances I have with Distrobox (basically it doing way more than necessary, and all using piles of shell code), this commit refactors my dev setup to use Toolbox instead. This commit also switches it back to Fedora, after Arch decided to kick out llvm15 from the repositories, requiring you to build it using the AUR. While I'm planning to update Inko to a newer version of LLVM, I prefer to have a more stable development environment, which Fedora is ideal for.
Thanks @yorickpeterse for the report! I'm not familiar with fish, the file If there is a way to detect login shell (or not) we can add it to the config file in order to skip for non-login shells |
@89luca89 Fish has a |
Describe the bug
After upgrading Distrobox, I ran into an issue where
git log -1
produced errors such as the following:After some digging, I found this is due to how I have
pager
set up in Git:After disabling that and doing some further testing, I can reproduce this by simply doing
git log -1 | fish -c ''
.Based on this, it appears that Distrobox is passing STDIN input to some tests which can't handle the input.
To Reproduce
Make sure your host's shell is Fish such that the container also uses Fish. Next, create
/tmp/output.txt
with the following contents:mkdir /tmp/fedora
distrobox create --image fedora:latest --name fedora --home /tmp/fedora --pull --no-entry
distrobox enter fedora
cat /tmp/output.txt | fish -c ''
Expected behavior
No errors, and Distrobox doesn't blindly pass STDIN around.
Logs
Doesn't seem relevant?
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: