Such line end using CRLF in the bash completion script will cause error message when opening a new Terminal on macOS:
-bash: /usr/local/etc/bash_completion.d/legit: line 1: syntax error near unexpected token `$'\r''
'bash: /usr/local/etc/bash_completion.d/legit: line 1: `_legit()
I suppose there're some issues with your distribution workflow...
NB: this issue was original raised from Homebrew/homebrew-core#51719
As I recently found out, the bash completion script from the
legit
PyPI archive has its line end using CRLF:However, the release archive from GitHub, has its line end using LF:
Such line end using CRLF in the bash completion script will cause error message when opening a new Terminal on macOS:
I suppose there're some issues with your distribution workflow...
NB: this issue was original raised from Homebrew/homebrew-core#51719