nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
85.25k stars 3.44k forks source link

Sudo Retry Fails on Fish #911

Open MBetters opened 5 years ago

MBetters commented 5 years ago

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release): The Fuck 3.28 using Python 3.5.2 and Fish Shell 3.0.2-902-ga8030c0

Your system (Debian 7, ArchLinux, Windows, etc.): Debian (Ubuntu 16.04)

How to reproduce the bug: In fish shell...

~> aptget install vim
No command 'aptget' found, did you mean:
 Command 'apt-get' from package 'apt' (main)
aptget: command not found
~> fuck
apt-get install vim [enter/↑/↓/ctrl+c]
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
~> fuck
No fucks given

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck): See this gist

If the bug only appears with a specific application, the output of that application and its version:

~> fish --version
fish, version 3.0.2-902-ga8030c0
djh82 commented 4 years ago

Think this should be fixed by #1028