Live data from Hacker News

The Fuck – Correct your previous console command

github.com

61–70 of 173 posts

Re: The Fuck – Correct your previous console command

#61

I think it's a funny little app. I could see it being kind of useful for the author but I think I would personally have trouble using an app that I don't actually know what it's going to do 100%. I think that you could mitigate this a bit by putting the list of commands it corrects right at the top of the readme. I think most of us have probably been at the point where we were typing something like "I hate you, you g…

I added info about how it works and what it can do in readme.

And yep, it can add sudo to your previous rm -rf /.

Re: The Fuck – Correct your previous console command

#62
post #60
post #20

Earlier quoted context omitted.

Agreed. They could even sanitize it a little bit as 'wtf' or 'oops'.

WTF means the same thing. That is no less vulgar.

> WTF means the same thing. That is no less vulgar.

Vulgarity of expressions is not a function only of what the expression means, but of the acceptability of the expression itself in various social contexts. WTF is, generally, acceptable as not excessively vulgar in social contexts where expanding the last letter of the initialism into its referent would not be, but the reverse isn't true; WTF is pretty close, therefore, to strictly less vulgar.

This may not seem rational, but then the entire concept of vulgarity is irrational.

Re: The Fuck – Correct your previous console command

#64
post #8

I'd not use this. It's basically a negative, aggressive emotional response, exactly a thing I'd rather not experience while working. A failure due to not enough privileges might be a signal to rethink what you are doing; a mindless prepending of `sudo` is dangerous. Why not `su root` then? Also, there was that screnshot of `sudo wget` as a response to a 403 error. This is exactly why you should re-examine a failed co…

I would, because a lot of commands could be improved by a "do what I mean" option.

GNU find is smart enough to tell me that I've placed one of the flags or the find string in the wrong place, but not smart enough to correct the fucking error and do what I meant in the first place. (It knows, it just won't do it.)

"apt-get/yum install" is unusable by anyone but root. Why do I need to waste time re-keying the command? This is annoying enough that I've aliased it[1] on every machine I have access to.

I'd be willing to bet the collective man hours wasted on these worthless "you did it wrong, here's how you did it wrong, now go do it right" type messages, expands well into the decades.

[1]: https://github.com/Karunamon/dotfiles/blob/1174bbaee047107ea...

Re: The Fuck – Correct your previous console command

#65
post #39

Earlier quoted context omitted.

If it was called the fix it never would have made it to page 1

Would make me more likely to recommend it as a serious tool to a colleague though. But then again I'm a curmudgeon.

I get the impression that it's more of a joke than a serious tool. It is actually quite funny, but I can't imagine anyone using it seriously.

Re: The Fuck – Correct your previous console command

#66

I'm going to go out on a limb here and suggest that you rename it "The Fix." Then you could type "fixit" or just "fix".

Yes, using the word "fuck" for this just strikes me as a bit immature.

The whole thing is something of a joke, and the name is just part of that. I don't think it's meant to be taken very seriously to begin with.

Re: The Fuck – Correct your previous console command

#67

I'm going to go out on a limb here and suggest that you rename it "The Fix." Then you could type "fixit" or just "fix".

I say leave it as is, in those example you can almost hear that intonation you say it (in your head or out loud) when mistyping :)

Re: The Fuck – Correct your previous console command

#68
post #6

Earlier quoted context omitted.

> Not being 100% sure which command this will correct to is dangerous. And yet the concept of the invocation `fuck --dry-run` is surely unappealing. :-)

I don't often laugh at HN comments, but when I do, I do it hard. :)

You get easily aroused.

Re: The Fuck – Correct your previous console command

#69
Cool idea. For those systems where you don't have the option of adding a 3rd party tool, it's probably worth knowing some of the standard bash shortcuts. The easy to remember ones are:

  !^ - the first argument from the previous command
  !$ - the last argument from the previous command
  !* - all of the arguments from the previous command
  !! - the entire previous command
For example:

  $ apt-get install foo
  # Crap
  $ sudo !!

Re: The Fuck – Correct your previous console command

#70

Earlier quoted context omitted.

Yes, using the word "fuck" for this just strikes me as a bit immature.

American prudishness. There's nothing immature in swearing in and of itself.

> swearing

Most actual instances of the actual word "fuck" aren't even swears.

Post reply on HN