Giter Club home page Giter Club logo

Comments (17)

mvirkkunen avatar mvirkkunen commented on May 13, 2024 3

@brianshumate Wouldn't a third fuck fix that though?

from thefuck.

brianshumate avatar brianshumate commented on May 13, 2024 2

@mvirkkunen given enough fucks, i think this could totally fuck one's system up, yes.

from thefuck.

jbrooksuk avatar jbrooksuk commented on May 13, 2024

This doesn't happen for me on OSX 10.10, that's interesting.

from thefuck.

nvbn avatar nvbn commented on May 13, 2024

It's a bit strange, do you wrote something in another terminal between two fucks?

from thefuck.

curtisz avatar curtisz commented on May 13, 2024

Haha this made my day. However, I could not replicate this on Linux Mint 17 (Ubuntu 14.04).

from thefuck.

brianshumate avatar brianshumate commented on May 13, 2024

The fsck would not succeed as a non-root user anyway.

from thefuck.

LarsMichelsen avatar LarsMichelsen commented on May 13, 2024

Can reproduce this on ubuntu 14.10. For me I just need to execute this twice:

> /usr/lib/command-not-found fuck
No command 'fuck' found, did you mean:
 Command 'suck' from package 'suck' (universe)
 Command 'fsck' from package 'util-linux' (main)
fuck: command not found

The order of suck and fsck is changed on each call. When fsck is shown first, the error appears.

When I remove the subshell from the shell alias this is easily visible:

> fuck
No fuck given
> fuck
fsck
> fuck
suck

from thefuck.

eridal avatar eridal commented on May 13, 2024

At first, I tested the apt-get, as shown in the README, and then tried running fuck again, and that was the first time the error happened.

Then I closed the console, and opened another again; and that's the output you're seeing.

btw, I'm running Linux where 3.13.0-49-generic #81-Ubuntu SMP Tue Mar 24 19:29:48 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

from thefuck.

LarsMichelsen avatar LarsMichelsen commented on May 13, 2024

btw. I just added an additional alias for testing. It simply outputs the command fuck would execute:

alias tryfuck='thefuck $(fc -ln -1)'

from thefuck.

nvbn avatar nvbn commented on May 13, 2024

I added check if previous command is fuck. It should fix this issue.

from thefuck.

LarsMichelsen avatar LarsMichelsen commented on May 13, 2024

Confirmed. Fixed for me.

However, I would prefer to make the rule "thefuck/rules/no_command.py" ask before executing the command suggested by /usr/lib/command-not-found. Would make it a lot less dangerous.

from thefuck.

zmarouf avatar zmarouf commented on May 13, 2024

fuck needs audio speech recognition. This way if it fucks things up and you end up screaming 'fuck!' out loud it will know not to do that again... or not. Fuck it if I know.

from thefuck.

sebie avatar sebie commented on May 13, 2024

I got to admit, you created a damn good title for this issue..

@zmarouf Deffenitly a +1 on that!

from thefuck.

revmischa avatar revmischa commented on May 13, 2024

alias nostop="sudo halt"

from thefuck.

nvbn avatar nvbn commented on May 13, 2024

@LaMi- you need to try require_confirmation settings option, it's doing almost what you want.

from thefuck.

g76r avatar g76r commented on May 13, 2024

I think @LaMi- pointed the most important issue: proposing once suck before fsck and the other time fsck before suck is not acceptable, since order matters: suck is far better before fsck

from thefuck.

nvbn avatar nvbn commented on May 13, 2024

Summing up everything, now confirmation required by default and when previous command is fuck (or another alias) will be used a command before it.

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.