From ee976ef03a1deb4fb33f48448441635f3591e530 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Wed, 25 Sep 2024 21:53:49 +0800 Subject: [PATCH] install.sh: use `printf` to print post-install instructions 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. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eaa85fd9..36c20194 100755 --- a/install.sh +++ b/install.sh @@ -1048,7 +1048,7 @@ EOS else cat <> ${shell_rcfile} + printf '%s\n' '' 'eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)"' >> ${shell_rcfile} eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)" EOS fi