-
Notifications
You must be signed in to change notification settings - Fork 90
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
Error building the server: \r\n
line endings and bad interpreter
#7
Comments
|
Alright, so here’s the weird thing, when I clone locally the repo
through git, `autobuild` actually has LF line endings, not CRLF. Running
`dos2unix` does nothing, and Emacs indicates LF line endings too, so
nothing I can modify. But, if I let Emacs (Spacemacs) download the
package itself, I get a file with CRLF line endings. Maybe this is an
issue from Spacemacs’ package manager?
* You should never use bash. Some system have dash instead of bash.
Fair enough, I did not know about dash.
* You should never use /bin/sh and always /usr/bin/env sh. /bin is never
the standard path according to Linux Filesystem Specification.
Also true, this at least should be changed.
|
I don't think the line-ending problem is a Re: changing the shebang line, I will create a separate issue to track this, I see it as a low hanging fruit and would love to accept a PR for it. |
I've confirmed that all files in |
As reported in this PR which will hopefully bring this fork to Spacemacs, I noticed while building the server the following errors:
autobuild
from the shell gives the following error:I see two issues here:
/bin/sh
.Regarding the second issue, I think it would be safer to directly refer the shell to
bash
and notsh
, since the latter can be symlinked to various shells depending on the OS, and not necessarily POSIX-compliant ones.bash
on the other hand is present on most UNIX and POSIX systems, including macOS.I will try to submit a PR soon to fix at least the first issue.
The text was updated successfully, but these errors were encountered: