-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fish's handling of ^ still annoying to git users #1873
Comments
Any ideas here are appreciated. |
Instead of |
Or maybe "^" could only redirect when it is a standalone token? |
IMHO shell should use context free grammar Łukasz Jan Niemier Dnia 7 sty 2015 o godz. 15:31 lmsurpre notifications@github.com napisał(a):
|
You can implement it that way with a context free grammar. |
An example of the problematic syntax is |
That |
From the recently referenced duplicate issue which is a slightly different input than previously discussed here:
If the hash value contains non-numeric values, the command works fine:
|
This seems like a regression relative to #81 |
Now a number followed by a caret is never a redirection. Thanks for reporting this! |
There was a change made in the past so that a caret '^' will only redirect stderr if it is the first character of a token:
#168
Today, I was trying to perform a multiple-point branch compare as described at
http://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#idp25327712
The '^' was the first syntax I used. I didn't understand why it wasn't working.
After experimenting with the options some more, I finally found my clue from the following error message from git:
"fatal: ambiguous argument 'staging': both revision and filename"
Fish was redirecting the stderr to a file with the name of my branch and so git was showing me just the log of the first branch instead of showing the difference.
Not sure if anything can/should be done about it, but thought I would report it anyway.
Also note that the same syntax is used in the rev-list command as mentioned by @aeosynth at #81 (comment)
The text was updated successfully, but these errors were encountered: