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

exec fish bumps $SHLVL, unlike bash #1693

Closed
lilyball opened this issue Sep 20, 2014 · 1 comment
Closed

exec fish bumps $SHLVL, unlike bash #1693

lilyball opened this issue Sep 20, 2014 · 1 comment
Assignees
Labels
bug Something that's not working as intended
Milestone

Comments

@lilyball
Copy link
Contributor

When running exec fish to replace fish with itself (e.g. because of an upgrade), the new fish instance has an incremented $SHLVL. bash does not exhibit this behavior. It appears that bash decrements $SHLVL when running exec, which actually seems like a reasonable behavior (because it's removing one level of shell). Fish should do the same thing.

@lilyball lilyball added the bug Something that's not working as intended label Sep 20, 2014
@lilyball lilyball self-assigned this Sep 20, 2014
@lilyball lilyball added this to the next-minor milestone Sep 20, 2014
@ridiculousfish
Copy link
Member

Clever bash. Makes sense to me.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants