dotnet / command-line-api

Command line parsing, invocation, and rendering of terminal output.
https://github.com/dotnet/command-line-api/wiki
MIT License
3.37k stars 378 forks source link

`dotnet-suggest script Bash` outputting CRLF as line ending in Linux #2275

Open giggio opened 11 months ago

giggio commented 11 months ago

Line ending should be the platform default.

justinmchase commented 10 months ago

Should never emit CRLF even in windows, CR is pointless everywhere at this point.

Bahri-Haythem commented 9 months ago

Hello, doesn't this #2186 resolve the problem? I tried the command and line ending is LF for me (I used WSL btw)

shajz commented 6 months ago

Hi, just ran the zsh install script (https://github.com/dotnet/command-line-api/blob/main/docs/dotnet-suggest.md#zsh) on a new machine under WSL with Ubuntu and ended up with CRLF line endings in my .dotnet-suggest-shim.zsh file.

Encountered the error : .dotnet-suggest-shim.zsh:40: parse error near `\n' when running source ~/.zshrc

Had to manually change those to LF for the script to load correctly.