-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install instructions for Fish are wrong #12
Comments
Thanks. |
@kballard, the bits about waste, quoting and sourcing instead of evaling are spot-on, but are you sure about
Conversely, I find that
This is with fish v2.1.1, |
That's odd. My several-months-old dev version of Fish 2.1.1, and my just-installed tip-of-master version of Fish 2.1.2, both behave as I described:
|
I can see mentions of
Where ridiculousfish themself agree that it should return the last May be a difference in arch/plugins/etc? For comparison, this is Fish |
I'm also running OS X. I'm wondering now if maybe Given the state of things at the moment, I guess the install instructions should be changed to use |
Yep, the commit referenced in that issue fish-shell/fish-shell#984 (aa1b065dd1c03f7c0867d002badcf0dc88feb3c4) is the culprit. Building fish from before that commit expands |
Here is a repeatable test on a completely pristine machine from instantcloud.io with even older fish 2.1.0: |
I've filed fish-shell/fish-shell#2028 about this issue. In the meantime, @nvbn, it seems clear that the instructions need to be changed to say |
I agree, if not only for the quoting and eval issues. Performance is also (predictably) way better:
|
The install instructions for Fish says to define
This won't work, because
history
will include the currently-executing command in its output, which means that this will always evaluate toeval (thefuck fuck)
. It's also rather wasteful, ashistory
dumps a bunch of history. There's also the curious property wherein ifthefuck
emits multiple lines, they'll end up being joined into a single line, as command substitution splits lines into arguments, andeval
joins multiple arguments with spaces instead of newlines.Both of these issues can be fixed by rewriting it as
The text was updated successfully, but these errors were encountered: