commit bash-20150417 snapshot

This commit is contained in:
Chet Ramey
2015-05-15 11:03:36 -04:00
parent 1a088fee73
commit 85ec0778f9
24 changed files with 3491 additions and 70 deletions
+11
View File
@@ -1470,6 +1470,17 @@ open_shell_script (script_name)
exit ((e == ENOENT) ? EX_NOTFOUND : EX_NOINPUT);
}
if (file_isdir (filename))
{
#if defined (EISDIR)
errno = EISDIR;
#else
errno = EINVAL;
#endif
file_error (filename);
exit (EX_NOINPUT);
}
free (dollar_vars[0]);
dollar_vars[0] = exec_argv0 ? savestring (exec_argv0) : savestring (script_name);
if (exec_argv0)