Skip to content
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

fix: replace newlines with crlf newlines #75

Closed
wants to merge 9 commits into from
Closed

fix: replace newlines with crlf newlines #75

wants to merge 9 commits into from

Conversation

aymanbagabas
Copy link
Member

@aymanbagabas aymanbagabas commented Oct 17, 2022

when ssh requests a pty, lf newlines should be converted to crlf newlines.

Ref: https://serverfault.com/a/593419

when ssh requests a pty, lf newlines should be converted to crlf
newlines.

Ref: https://serverfault.com/a/593419
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2022

Codecov Report

Merging #75 (0b47396) into main (ce61721) will increase coverage by 0.54%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main      #75      +/-   ##
==========================================
+ Coverage   71.79%   72.33%   +0.54%     
==========================================
  Files          18       18              
  Lines         897      911      +14     
==========================================
+ Hits          644      659      +15     
+ Misses        200      199       -1     
  Partials       53       53              
Impacted Files Coverage Δ
wish.go 61.01% <85.71%> (+14.35%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

wish.go Outdated Show resolved Hide resolved
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0
Copy link
Member

one thing I just realized might be an issue: on windows, it will replace \r\n with \r\r\n, not sure how bad that is... but maybe our replace should be smarter? 🤔

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 mentioned this pull request Nov 17, 2022
@caarlos0
Copy link
Member

will be fixed in #95

@caarlos0 caarlos0 closed this Nov 17, 2022
@caarlos0 caarlos0 deleted the crlf branch November 17, 2022 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants