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
bash: '\n' after command substitution in $PS1 causes error #1839
Comments
If I revert the following hunks, the issue disappears: MSYS2-packages/bash/0005-bash-4.3-msys2-fix-lineendings.patch Lines 86 to 93 in 8a97a6c
MSYS2-packages/bash/0005-bash-4.3-msys2-fix-lineendings.patch Lines 182 to 189 in 8a97a6c
MSYS2-packages/bash/0005-bash-4.3-msys2-fix-lineendings.patch Lines 197 to 200 in 8a97a6c
|
I have same issue too. |
I recently switched from Cygwin to MSYS2 and I have the same problem, and this problem seems to be only on MSYS2, I don't experience it on any of the remaining platforms. Hope this issue can be fixed soon. |
I add |
@lazka Who is responsible for the Bash package? |
When I use
\n
after command substitution in$PS1
, it causes syntax error:It should not cause the error.
If I remove the
\n
after$(date)
, it works fine:Using backquotes instead of
$()
also works fine:Setting
PS1='$(date)\n\$ '
works fine on Cygwin, so this seems an MSYS2 specific issue.See also: https://stackoverflow.com/questions/21517281/ps1-command-substitution-fails-when-containing-newlines-on-msys-bash
The text was updated successfully, but these errors were encountered: