To be clear, this is the item that concerns me. BSDs didn't used to support that method of determining what pinxi is running in, but it seems to work on all my bsd tests, openbsd and netbsd still don't support it so they just show the old running-in: tty8 or whatever.
But even the trickiest scenario, running pinxi's debugger which then runs pinxi to generate the output got this one right in my tests:
Interestingly, with: su -
I get this: Shell: csh v: 6.21.00 running-in: tty 2
And with: su
I get: Shell: csh (su) v: 6.21.00 running-in: qterminal
And with: doas pinxi -Ia
I get: Shell: sh (doas) default: csh v: 6.21.00 running-in: qterminal
so I'm puzzled where your bash came from on that system, that's difficult logic but usually when it fails, it tends to faiil reliably and consistently, lol.
Tried with bash, and got it to be wrong, but that's:
I get: Shell: Bash v: 5.1.4 default: csh v: 6.21.00 running-in: _su
sh > su > bash which isn't really normal for a user to do.
Code:
Info:
Processes: 83 Uptime: 5m Init: init (BSD) v: N/A tool: service Compilers:
gcc: N/A clang: 10.0.1 Shell: csh (su) v: 6.21.00
running-in: /usr/local/bin/bash pinxi: 3.3.01-98
But even the trickiest scenario, running pinxi's debugger which then runs pinxi to generate the output got this one right in my tests:
Code:
Info:
Processes: 55 Uptime: 1h 03m Init: init (BSD) v: N/A tool: service
Compilers: gcc: N/A clang: 11.0.1 Shell: sh running-in: qterminal
pinxi: 3.3.01-99
Interestingly, with: su -
I get this: Shell: csh v: 6.21.00 running-in: tty 2
And with: su
I get: Shell: csh (su) v: 6.21.00 running-in: qterminal
And with: doas pinxi -Ia
I get: Shell: sh (doas) default: csh v: 6.21.00 running-in: qterminal
so I'm puzzled where your bash came from on that system, that's difficult logic but usually when it fails, it tends to faiil reliably and consistently, lol.
Tried with bash, and got it to be wrong, but that's:
I get: Shell: Bash v: 5.1.4 default: csh v: 6.21.00 running-in: _su
sh > su > bash which isn't really normal for a user to do.
Last edited: