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

Error occured on MacOS #14

Open
tttturtle-russ opened this issue Apr 25, 2024 · 2 comments
Open

Error occured on MacOS #14

tttturtle-russ opened this issue Apr 25, 2024 · 2 comments

Comments

@tttturtle-russ
Copy link
Member

machine: MacOS M1 silicon
shell: zsh
how to reproduce:

(base) ➜ ~ curl -sSfL https://mirrors.hust.edu.cn/get | sh -s -- install
sh: command substitution: line 403: syntax error near unexpected token `)'
@jingfelix
Copy link
Member

It's a known problem, can be reproduced with zsh, dash or bash on macOS.

@EarthCompass
Copy link
Contributor

老版本Bash的Here document碰到单个单引号有问题,使用bash 3.2.57可以复现。

test=$(cat <<EOF
1'2
EOF
)

echo $test

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

No branches or pull requests

3 participants