msh: fix the case where the file has exec bit but can't be run directly
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 30 May 2008 22:28:32 +0000 (22:28 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 30 May 2008 22:28:32 +0000 (22:28 -0000)
commit447bd6683729eb6d0f09e30eb68add6297881d01
tree778c20dc4b7f7f176ea43934d8fca9ac3056f5cc
parentf9a07841441e63a96d1a416f68ee2eeb78bface0
msh: fix the case where the file has exec bit but can't be run directly
     (run "$SHELL $file" instead)
msh: fix exit codes when command is not found or can't be execed
     (with testcases)
shell/msh.c
shell/msh_test/msh-execution/exitcode_EACCES.right [new file with mode: 0644]
shell/msh_test/msh-execution/exitcode_EACCES.tests [new file with mode: 0755]
shell/msh_test/msh-execution/exitcode_ENOENT.right [new file with mode: 0644]
shell/msh_test/msh-execution/exitcode_ENOENT.tests [new file with mode: 0755]