command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

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

Open giggio opened this issue 2 years ago • 3 comments

Line ending should be the platform default.

giggio avatar Sep 27 '23 18:09 giggio

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

justinmchase avatar Nov 02 '23 22:11 justinmchase

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

Bahri-Haythem avatar Nov 08 '23 17:11 Bahri-Haythem

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.

shajz avatar Feb 08 '24 20:02 shajz