Code Monkey home page Code Monkey logo

Comments (4)

Clpsplug avatar Clpsplug commented on May 17, 2024 1

Verified here as well, it won't fuck us up - but! I don't think this is what it's meant to be...

fuck didn't add sudo

What I did here:

I can't do mkdir at / without sudo which I did, and I accidentally ran fuk instead of fuck. Dissatisfied, I ran fuck.

What actually happened

  1. fuck went to get the last command, which resulted in getting fuk
  2. fuck thought I meant thefuck (or alias fuck), and ran it for me
  3. But for some reason that thefuck (which have just been run by thefuck) didn't get the 2nd latest command (which is mkdir a ran at the root) and didn't give any fuck.

What I expected

  1. fuck goes to get the last command, which results in getting fuk
  2. fuck thinks I meant thefuck (or alias fuck), and runs it for me
  3. This fuck (which been run by thefuck) gets its last command, mkdir a.
  4. fuck thinks I skipped sudo, and it runs my command with sudo, resulting in running sudo mkdir a.

Can this be implemented? - like, whenever thefuck tries to correct itself, it'll get the 2nd latest command.

from thefuck.

nvbn avatar nvbn commented on May 17, 2024

Probably fixed in 1.23+

from thefuck.

 avatar commented on May 17, 2024

I verified this and it has been fixed in the newest version.

from thefuck.

scorphus avatar scorphus commented on May 17, 2024

Fixed in 9ba36c9

from thefuck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.