View Single Post
Posts: 1,523 | Thanked: 1,997 times | Joined on Jul 2011 @ not your mom's FOSS basement
#1818
"this will make the current terminal session get cgrouped
and if you see the content of /root/.profile which is copied to /home/user
you will understand more"

I did check, that's why i'm asking because the causality is not clear to me. Basically you are saying, that without spawning bash from ash, the (any?) terminal session is not crouped. Is that right? Also, is that also the case for non-interactive shells?

"you may tell me to put the content of .bashrc in .profile"

Why do we need bash? That's the question here, for me. By the way: the contents of '/root/.bashrc' are basically:

Code:
# ~/.bashrc: executed by bash(1) for non-loginshells.

export PS1='\h:\w\s '
umask 022

(some lines relevant to 'ls' command options / aliases that are commented out)
I simply do not see why we need bash, even more since the defaults above (alt least they are the defaults on my N900 in root's home) are basically irrelevant, because they only alter the file umask and the shell prompt.

(neither is my 1st language English, mine's German.)