Skip to content

No fuck given when i run fuck with a typo on the last prompt #1492

Open
@Unknownuserfrommars

Description

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.32 using Python 3.13.1 and PowerShell 5.1.26100.2161

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

Windows 11 24H2

How to reproduce the bug:

  1. Install thefuck using pip install thefuck
  2. notepad.exe $profile and add iex "$(thefuck --alias)" (as given by prompt)
  3. run . $profile, gives an warning. Not sure why:
C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'gbk', readline hook consumer may assume they are the same
  readline_hook.enable(use_pyreadline=use_pyreadline)
  1. Deliberately try a typo
PS C:\Users\Kevin> puthon
[Errors out]
PS C:\Users\Kevin> fuck
C:\Users\Kevin\AppData\Local\Programs\Python\Python313\Lib\site-packages\win_unicode_console\__init__.py:31: RuntimeWarning: sys.stdin.encoding == 'utf-8', whereas sys.stdout.encoding == 'gbk', readline hook consumer may assume they are the same
  readline_hook.enable(use_pyreadline=use_pyreadline)
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):

FILL THIS IN

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

FILL THIS IN

Anything else you think is relevant:

WHY DOES IT HAPPEN?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions