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
Starts twice on init #2408
Comments
If I understand the packaging recipe correctly, this is basically pure fish 2.2.0, only with some sed-patching to make nix's directory structure work?
If I understand this correctly, that's your self-built fish execing system fish? Does it also occur with system fish? |
This looks like the built-in |
Yes, that sure does look like it. How about we move the redirection to the fish call, not the function call? Unless we want to change that config.fish is always sourced, that seems to be the only thing we can do. Though it should probably call "this fish", not system fish. |
I don't think this is a bug. That the output of This block should only run once to generate completions; if it's more than that, then there is a bug. |
@Profpatsch: That fish starts twice is a "feature" (well, more of a hacky workaround). Unless it's always starting (it should only do it once if ~/.local/share/fish/generated_completions doesn't exist), there's no real bug here. Therefore I am closing this. If it always starts, please say so and we'll reopen. |
When I start fish on Nixos, it execve’s itself again after loading the config files. This way if I e.g. add
echo foo
to/etc/fish/config.fish
it gets printed twice.The nixos-part of this issue is here: NixOS/nixpkgs#9914
First off:
1: (
strace -f result/bin/fish
)2: (
fish -p
)The text was updated successfully, but these errors were encountered: