On 7/24/20 7:44 PM, Grisha Levit wrote:
> 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 > /t
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 /