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
$'\r': command not found #5032
Comments
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Ok, and when |
GNU Guessing (and I do have to guess) short answer is probably (to a first order) "never". Reasoning being: (a) It is valid to have ' An alternate "when" answer would be: Moments after anyone motivated creates a Launchpad PPA with the |
|
The |
I've removed previous comment, because provided wrong patch, sorry.
This patch is wrong from design perspective. For example you want to ignore cr, you are using the following command: #!/bin/bash
./subscript.sh
#!/bin/bash
./script.sh
#!/bin/bash
echo "fit"
(set -o igncr) 2>/dev/null && set -o igncr This line is awful, but today it is used inside millions of bash scripts. Bash That's why I am talking about So please use Related to issue. |
Dear WSL team,
I have an issue with /bin/bash because there are a lot of scripts with /r/n line endings. The bash tool recognizes \r\n line ending as unknown command of \r symbol. This symbol users even can't see in normal bash code editors. This might be a bug, because DOS uses carriage return and line feed ("\r\n") as a line ending, which Unix uses just line feed ("\n").
Please, add a feature to recognize line endings for bash tool of WSL.
The text was updated successfully, but these errors were encountered: