Re: histexpand in shebang-less script

2020-07-27 Thread Chet Ramey
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

histexpand in shebang-less script

2020-07-24 Thread Grisha Levit
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 /