Skip to content
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

Merged
merged 1 commit into from
Jan 20, 2019

Conversation

bobthecow
Copy link
Member

Fish has deprecated ^ as a shortcut for stderr redirection in 3.0. Replace it with the more
compatible 2>.

See oh-my-fish/oh-my-fish#609 and oh-my-fish/oh-my-fish#618

@bobthecow bobthecow requested a review from eugenesvk January 13, 2019 22:11
Copy link
Member

@scorphus scorphus left a 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
Copy link
Member

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.

Copy link
Member Author

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 :)

Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

@bobthecow bobthecow merged commit 4c7721c into oh-my-fish:master Jan 20, 2019
@bobthecow bobthecow deleted the fish-three branch January 20, 2019 21:30
@scorphus
Copy link
Member

teamwork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants