On bashrc and prompts
1.0.5 has [b]SHELL="/bin/bash"[/b] in /etc/profile
you can change that to [b]SHELL=/bin/sh[/b] or [b]SHELL=/bin/ash[/b]
ash is busybox's shell
sh is bash running under the name [b]sh[/b]
bash is bash running under the name [b]bash[/b]
ash and sh will execute the file named in ENV everytime they start ... you can setup environment variables there, and aliases, and set the prompt
bash does not use ENV ... it executes /root/.bashrc ... you can setup the environment for bash in there, including the prompt
ash and sh use /etc/profile if they are started as a login shell ... bash uses /root/.bash_profile (or maybe it's .bash-profile) if it's started as a login shell
also, bash and ash have a slightly different syntax for setting the prompt
you can see what's happening if you put echo commands in the rc files, something like [b]echo '/root/.bashrc is executing'[/b]
you can change [b]SHELL=/bin/bash[/b] in /etc/profile to [b]SHELL=/bin/sh[/b] or to [b]SHELL=/bin/ash[/b] ... or you can setup ENV and .bashrc files to work the way you want
02/10/05
CategoryUserContributions
There is one comment on this page. [Display comment]