-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething that's not working as intendedSomething that's not working as intended
Milestone
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething that's not working as intendedSomething that's not working as intended