-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
Argument list too long (maybe caused by a bunch of commented lines) #149
Comments
Once again, I got the error message: "Argument list too long: /bin/bash", also solved with deleting commented lines. What triggers the error message is still unknown. Any idea for finding the root cause? |
Well... Can the author give hints about how to avoid this error? |
@MdeLv Hi, did you ever find a fix for this? I am having the same problem. Tried deleting all comments but no dice. |
I don't know what can cause "Argument list too long". Maybe you have also some syntax error? Have you tried to use some lint tool to check that? |
This is because sh c cannot exceed the ARG-MAX value. You need to try shellc to solve the problem of script file size |
A new option |
debian11
bash 5.1.4(1)
The program (in bash) is 3500 lines.
Error message: Argument list too long: /bin/bash
Cause detected: approx 100 bash commented lines (#)
Once deleted, shc works again.
Is any limitation reached? (just 3500 lines)
Or is there another cause?
I suppose that shc drop all comments when building the executable, so there may be another cause.
What is weird is that shc has been working for weeks before that with these commented lines.
I tried to delete added functions but that's only deleting these 100 commented lines that fixed the trouble.
Thanks.
The text was updated successfully, but these errors were encountered: