mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
fix for a trap on SIGINT restoring the default disposition in an asynchronous subshell; change cd exit status if -Pe supplied and the directory can't be changed; fix for compound associative array assignment if one of the expanded words unsets the array during word expansion; fixes for rare systems that don't have various defines and system calls
This commit is contained in:
@@ -1654,7 +1654,7 @@ open_shell_script (char *script_name)
|
||||
#endif
|
||||
|
||||
/* Only do this with non-tty file descriptors we can seek on. */
|
||||
if (fd_is_tty == 0 && (lseek (fd, 0L, 1) != -1))
|
||||
if (fd_is_tty == 0 && (lseek (fd, 0L, SEEK_CUR) != -1))
|
||||
{
|
||||
/* Check to see if the `file' in `bash file' is a binary file
|
||||
according to the same tests done by execute_simple_command (),
|
||||
@@ -1691,7 +1691,7 @@ open_shell_script (char *script_name)
|
||||
exit (EX_BINARY_FILE);
|
||||
}
|
||||
/* Now rewind the file back to the beginning. */
|
||||
lseek (fd, 0L, 0);
|
||||
lseek (fd, 0L, SEEK_SET);
|
||||
}
|
||||
|
||||
/* Open the script. But try to move the file descriptor to a randomly
|
||||
|
||||
Reference in New Issue
Block a user