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. #8

Merged
merged 1 commit into from
Jan 14, 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

@@ -1,3 +1,3 @@
function vcs.dirty
command hg summary 2>/dev/null | command grep -q 'commit: (clean)' ^/dev/null
command hg summary 2> /dev/null | command grep -q 'commit: (clean)' 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.

Hah, half the command used 2> and the other half used ^...

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, there were a couple like that :)

@sagebind sagebind merged commit 4420917 into oh-my-fish:master Jan 14, 2019
@bobthecow bobthecow deleted the fish-three branch January 14, 2019 16:19
@oranja
Copy link

oranja commented Jan 14, 2019

Whoops. Lousyseding on my part.
Thanks for completing the fix @bobthecow.

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.

3 participants