This commit makes dash exit with return code 127 instead of 0 if started as non-interactive shell with a command_file specified as argument that is actually a directory. The wrong exit code was reported by Jari Aalto http://bugs.debian.org/548687 --- src/input.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/input.c b/src/input.c index c1e3e54..7ab1de6 100644 --- a/src/input.c +++ b/src/input.c @@ -206,6 +206,10 @@ retry: } } } + if (errno == EISDIR) { + exitstatus = 127; + exraise(EXEXIT); + } } return nr; } -- 1.6.0.3 -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html