FFFF Fish invoked from sudo stops itself · Issue #7388 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

Fish invoked from sudo stops itself #7388

@Nikratio

Description

@Nikratio

When I'm running sudo, and root is using the fish shell, the new shell immediately stops:

nikratio@vostro ~> fish --version
fish, version 3.0.2

nikratio@vostro ~> sudo cat /root/.bash_profile
echo exec /usr/bin/fish -i
exec /usr/bin/fish -i

nikratio@vostro ~> sudo -i
exec /usr/bin/fish -i
Job 1, 'sudo -i' has stopped

Removing the exec from .bash_profile and executing it manually works just fine:

nikratio@vostro ~> sudo cat /root/.bash_profile
#echo  exec /usr/bin/fish -i
#exec /usr/bin/fish -i

nikratio@vostro ~> sudo -i

[0] root@vostro:~
# exec /usr/bin/fish -i
Welcome to fish, the friendly interactive shell
root@vostro ~# 

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0