-
-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
Ran into this while working on regtest/debian.
apt or one of its hooks seems to invoke the system shell with -c -- before the actual commands that should be executed. But osh tries to execute -- as a command instead of treating it like an argument delimiter.
Here is the full command that is executed: [pid 21762] execve("/bin/sh", ["sh", "-c", "--", "dpkg-source --no-check -x hello_"...], 0x7ffe5af89d28 /* 19 vars */) = 0
Or a minimal reproducable example:
$ osh -c -- echo hi
Unexpected error in execvpe('--', ['--'], ...): [Errno 2] No such file or directory
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status