-
Notifications
You must be signed in to change notification settings - Fork 249
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
using a file with CRLF with rc-service
produces a "rc-service: No such file or directory"
#733
Comments
Is this an actual problem though? Isn't Linux' default line ending LF? |
yes but I don't think the proper error message to display should be "rc-service: No such file or directory" and its not like windows is some nice operating system, I have spent far too many hours trying to chase after what could possibly be wrong with the service that I uploaded, and why it was that when I just copy pasted the files contents from the file to a new one through the terminal the issue would disappear I also believe the issue is not just that it doesn't support it, the issue is the terrible error message included as well I would expect at least a warning that hey this file has CRLF and that isn't supported |
please show the exact command you're running and exact output you're seeing. chances are these errors are not from openrc, they're from the kernel/shell, and there's nothing we can do about it, and it isn't unique to openrc. |
I run |
The problem is the carriage return on the first line. Linux considers this part of the executable name and therefor can't find it. The same happens with every shell script:
(here a reproducer for good measure)
If you want to make people angry you can do |
whats even more bewidering is
rc-update
can handle it but not rc-serviceThe text was updated successfully, but these errors were encountered: