In a branch of exec_builtin(), errno is not restored before printing an
error message, and that causes "Success" to be printed.
Example:
$ # bash 5.2.37
$ cd /tmp
$ echo "export env='\''$(echo {1..100500})'\''" > src
$ . ./src
$ exec -- "$BASH"
bash: /bin/bash: Argument li
On Mon, Oct 28, 2024 at 12:47:53AM +0100, Emanuele Torre wrote:
> }
>else
> -file_error (command);
> +{
> + errno = opt;
> + file_error (command);
> +}
>
I just thought that perhaps this branch was supposed to print errors for
the executable_file() function call ab