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

install.sh: use printf to print post-install instructions #881

Merged
merged 1 commit into from
Sep 25, 2024

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.
install.sh Show resolved Hide resolved
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