The value of `histexpand' is not reset when executing a shebang-less
script. (Admittedly, this is unlikely to matter since the value of
`history' *is* properly reset.)
$ cat > /tmp/test1.sh <<"EOF"
#!/usr/bin/env bash
echo $-
EOF
$ cat > /tmp/test2.sh <<"EOF"
echo $-
EOF
$ chmod +x /tmp/test1.sh /
On Fri, Jul 24, 2020 at 4:21 AM Oğuz wrote:
> What version of bash is this? I can't reproduce the bug on 5.0.11.
Good point, this was with the latest devel branch, though the behavior can
be seen in the release version for the privileged, verbose and xtrace
options. The change was in [1].
The pr
24 Temmuz 2020 Cuma tarihinde Grisha Levit yazdı:
> The value of $SHELLOPTS is not always updated correctly after returning
> from a function that modifies options after using `local -'.
>
>
What version of bash is this? I can't reproduce the bug on 5.0.11.
> For example:
>
> fun() { local