since some time now su'ing into the root account prints out some annoying lines:

Code:

thomas@mac ~ 5 su -l root
Password:
-su: little-endian?=false: command not found
-su: real-mode?=false: command not found
-su: auto-boot?=true: command not found
-su: diag-switch?=false: command not found
-su: fcode-debug?=false: command not found
-su: oem-banner?=false: command not found
-su: oem-logo?=false: command not found
-su: use-nvramrc?=false: command not found
-su: use-generic?=false: command not found
-su: default-mac-address?=false: command not found
-su: scroll-lock=true: command not found
-su: skip-netboot?=false: command not found
-su: real-base=-1: command not found
-su: real-size=-1: command not found
-su: load-base=0x800000: command not found
-su: virt-base=-1: command not found
-su: virt-size=-1: command not found
-su: logger-base=-1: command not found
-su: logger-size=-1: command not found
-su: pci-probe-mask=-1: command not found
-su: screen-#columns=100: command not found
-su: screen-#rows=40: command not found
-su: selftest-#megs=0: command not found
-su: boot-volume=3: command not found
-su: gmt-offset=0: command not found
-su: boot-file=: command not found
-su: boot-screen=screen: command not found
-su: console-screen=screen: command not found
-su: diag-device=enet: command not found
-su: diag-file=,diags: command not found
-su: input-device=keyboard: command not found
-su: output-device=screen: command not found
-su: input-device-1=/ipc: No such file or directory
-su: output-device-1=/ipc: No such file or directory
-su: mouse-device=mouse: command not found
-su: oem-banner=: command not found
-su: oem-logo=: command not found
-su: boot-command=mac-boot: command not found
-su: default-client-ip=: command not found
-su: default-server-ip=: command not found
-su: default-gateway-ip=: command not found
-su: default-subnet-mask=: command not found
-su: default-router-ip=: command not found
-su: boot-script=: command not found
-su: aapl,pci=/@f0000000/@10�R2AD�%�����������4�����������*����������▒�: No such file or directory
-su: boot-args=: command not found
-su: aapl,tdm-units=: command not found
-su: boot-device=hd:2,\:tbxi: command not found
-su: prev-lang:kbd=en:0: command not found
-su: platform-uuid=������: command not found
-su: ram-size=0x40000000: command not found
-su: boot-once=: command not found

I guess it started around the last two bash-completion updates (Gentoo profile 2008.0), because before them I never saw those before. Anybody got a clue what I am up against?

.bashrc is the normal root thing, bash-completion is selected system-wide.

Thanks in advance,
Thomas

Last edited by Ato on Tue Jun 09, 2009 3:23 pm; edited 1 time in total

nvsetenv is a ppc utility packet which allows to modify settings stored in the non-volatile OpenFirmware RAM. For instance it allows you to have the computer boot up after power failure instead of staying powered of which is the default setting after every boot.

Code:

thomas@mac ~ 5 cat /usr/share/mc/mc.gentoo
#!/bin/sh

# A little fix so mc exits into it's current working directory
MC_ENV=/usr/share/mc/bin/mc.sh

for i in $MC_ENV; do
if [ -x $i ]; then
. $i
fi
done

# include this, so also xterm,kterm,gterm,etc will have default bash settings

Never mind. I found to my surprise a directory named .bash_completion.d in ~root and had a look at it. Surprise, surprise, there was a symlink to ~root/nvram.txt. I created ~root/nvram.txt aeons ago to see which OF settings are available. Don't ask me how the symlink ended up there but it was never intended. Problem was obviously the wetware, not the software.