Skip to content

Conversation

ZhongRuoyu
Copy link
Member

In Fish shell, parentheses are for command substitution, so the parenthesised subshell used for echo grouping does not work there. Instead let's use printf to print the post-install instructions; it's more portable.

Fixes #880.

In Fish shell, parentheses are for command substitution, so the
parenthesised subshell used for `echo` grouping does not work there.
Instead let's use `printf` to print the post-install instructions; it's
more portable.

Fixes Homebrew#880.
@carlocab carlocab enabled auto-merge September 25, 2024 14:16
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Seems fine, thanks @ZhongRuoyu. Ideally we'd make this Fish-specific but can be in a follow-up PR.

@carlocab carlocab merged commit 07d7f05 into Homebrew:master Sep 25, 2024
3 checks passed
@ZhongRuoyu ZhongRuoyu deleted the printf-over-echo branch September 26, 2024 03:09
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.

brew install on Linux gives non-working fish profile commands
3 participants