okay. as usual - you were right.
*looks at picture one *
it's a tidied up and pared down view of htop with the noise removed.
we can see two sh processes - both mine - one for htop, one for the testing console.
a) note knc1's rightness:
Quote:
me@dev ~ $ ssh root@k
#################################################
# N O T I C E * N O T I C E * N O T I C E #
#################################################
Rootfs is mounted read-only. Invoke mntroot rw to
switch back to a writable rootfs.
#################################################
[root@kindle root]# su -h
BusyBox v1.20.2 (2012-09-03 02:06:04 BST) multi-call binary.
Usage: su [OPTIONS] [-] [USER]
Run shell under USER (by default, root)
-,-l Clear environment, run shell as login shell
|
duh. oh yeah. so we:
[root@kindle root]#
su -l
*looks at picture two*
ah yes. a child is born, right PPID, new PID.
Let's test if the .alias was processed.
[root@kindle root]#
su --version
Quote:
su: unrecognized option `--version'
BusyBox v1.20.2 (2012-09-03 02:06:04 BST) multi-call binary.
|
Happy days.
Now... need to convince ALL subshells to spawn as -l then...
or something. *resumes reading*