Re: Weird set -u error
On Sat, 27 Aug 2022 at 16:49, Tim Woodall <debianuser@woodall.me.uk> wrote:
> This just gets weirder and weirder.
>
> It looks like it's related to logging in with ssh:
[..]
> apt-mirror@aptmirror17:~$ ( bash -cu : )
> apt-mirror@aptmirror17:~$
> apt-mirror@aptmirror17:~$ ssh aptmirror17
> Last login: Sat Aug 27 06:23:12 2022
> apt-mirror@aptmirror17:~$ ( bash -cu : )
> /etc/bash.bashrc: line 7: PS1: unbound variable
Interesting! I can reproduce this, not sure why.
I have modified my ssh environment so that it is not the default.
But I do see a similar error message, using ssh from stable Debian 11.
[david@kablamm ~]$ ( bash -cu : )
[david@kablamm ~]$ ssh kablamm
Linux kablamm 5.10.0-16-amd64 #1 SMP Debian 5.10.127-2 (2022-07-23) x86_64
Last login: Sat Aug 27 17:00:13 2022 from 10.1.1.2
[david@kablamm ~]$ ( bash -cu : )
/etc/bash.bashrc: line 7: PS1: unbound variable
[david@kablamm ~]$
So hopefully someone who understands how ssh interactive
session interacts with bash can explain this to us now :)
Reply to: