Skip to content
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

Use exit instead of return in /etc/profile.d/nix-daemon.fish #7105

Merged
merged 1 commit into from
Sep 27, 2022
Merged

Use exit instead of return in /etc/profile.d/nix-daemon.fish #7105

merged 1 commit into from
Sep 27, 2022

Conversation

SquidDev
Copy link
Contributor

Older versions of Fish (anything before 3.4) do not support using return outside of functions. While Fish 3.3 is a year old, it is the version packaged by Ubuntu LTS 22.04, so still sees significant usage.

Using the equivalent exit instead of return should add compatibility with older versions.

Older versions of Fish (such as those bundled with Ubuntu LTS 22.04) do
not support return outside of functions. We need to use the equivalent
exit instead.
@edolstra edolstra enabled auto-merge September 27, 2022 12:31
@edolstra edolstra merged commit 050fcd3 into NixOS:master Sep 27, 2022
@SquidDev SquidDev deleted the hotfix/fish-return branch September 27, 2022 13:13
Minion3665 pushed a commit to Minion3665/nix that referenced this pull request Feb 23, 2023
Use exit instead of return in /etc/profile.d/nix-daemon.fish
peromage added a commit to peromage/pix that referenced this pull request Apr 27, 2023
peromage added a commit to peromage/rice-legacy that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants