Skip to content

Trying to run bash tools/init --no-gh, failing #1757

Answered by NichtsHsu
blaurascon asked this question in Q&A
Discussion options

You must be logged in to vote

Windows uses a pair of CR and LF (i.e. \n\r) to terminate lines while UNIX uses an single LF (i.e. \n). When you clone repositories on Windows, git will replace all \n to \n\r, which makes bash unable to recognize \r.

You might try the following solutions:

  1. Completely use the WSL, re-clone this repository in WSL and run bash.
  2. Configure core.autocrlf of git to avoid automatic conversion.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@blaurascon
Comment options

Answer selected by blaurascon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants