Nested sh treated differently than MRI #2088

Closed
jc00ke opened this Issue Dec 7, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Owner

jc00ke commented Dec 7, 2012

@dbussink and I just spent a while digging into #2059 and he found the issue. I'm on Ubuntu, which uses dash by default. So /bin/sh is a symlink to /bin/dash. If I change sh to point to /bin/bash then the integration test will pass.

It could be the case that commands like sh -c 'sh -c "exec sleep 100"' should not be allowed to nest calls to sh like it currently does. Looks like MRI takes care to not execute nested sh's.

Notes: Process.perform_exec, MRI's execv

uname -a
Linux chino 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

rbx f76d3f6

dbussink closed this in 2ea9978 Dec 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment