You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sep handling was recently changed, but the manpage code wasn't at all. I guess that "--" wasn't getting added to argv before in this code path. A simple fix is to not reuse argv in the execvp call, which would change behavior for anyone (probably nobody) who was passing extra arguments to man after the module name.
The text was updated successfully, but these errors were encountered:
Describe the bug
erl man lists
shows the manpage for 'lists' (if present), and then shows an error appropriate for the commanderl man --
To Reproduce
Expected behavior
erl -man lists
should only look up the documentation for thelists
module.Affected versions
Confirmed to be in OTP 27 RC3 and RC1
Additional context
--
is the conventional "stop processing arguments here" argument under Unix.This happens within erlexec and isn't caused by asdf or another wrapper:
And is not due to erlexec looping over module names, but due to "--" getting passed as an arg to man:
The
sep
handling was recently changed, but the manpage code wasn't at all. I guess that "--" wasn't getting added to argv before in this code path. A simple fix is to not reuseargv
in theexecvp
call, which would change behavior for anyone (probably nobody) who was passing extra arguments toman
after the module name.The text was updated successfully, but these errors were encountered: