-
Notifications
You must be signed in to change notification settings - Fork 16
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
Make stderr redirection compatible with Fish 3.0. #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
@@ -374,12 +374,12 @@ set -g CMD_DURATION 0 | |||
#end | |||
|
|||
#current_gemset alternativ | |||
# else if test (rbenv gemset active >/dev/null ^&1) = "no active gemsets" # not sure what ^&1 | |||
# else if test (rbenv gemset active >/dev/null 2>&1) = "no active gemsets" # not sure what 2>&1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there could be a previous commit removing this dead code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's @eugenesvk's repo, and @eugenesvk's dead code. i wouldn't presume to remove it, because i don't know why it's still there :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair. Agreed.
# else | ||
# set -l active_gemset (string split -m1 " " (rbenv gemset active)) | ||
# echo $active_gemset[1] | ||
# | ||
# set -l active_gemset (rbenv gemset active ^/dev/null) | ||
# set -l active_gemset (rbenv gemset active 2> /dev/null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
Fish has deprecated
^
as a shortcut for stderr redirection in 3.0. Replace it with the morecompatible
2>
.See oh-my-fish/oh-my-fish#609 and oh-my-fish/oh-my-fish#618