The description of the problem
The scenario where the problem happened is when I JUST run a bash script named experiment.sh.
The solution is change its CRLF to LF.
Note The editor I use is vscode. You just click the position in red rectangle. You will see the way to change it to LF.
The major reason for this
is the system I use is WSL that consider LF as line wrap.
The Windows considers the CRLF as line wrap.
reference