[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash-2.05b-static behaviour



Hi,

I recently installed OpenBSD, after which I dowloaded the bash-2.05b-
static.tgz package to set up bash as my shell. I 'chpass' from csh to 
bash as per the docs, and bash seems to work fine. However, I noticed 
that the program name is being reported as -bash. For example, 

[emerson_(_at_)_pajs /home]$ badcommand
-bash: badcommand: command not found
[emerson_(_at_)_pajs /home]$ 

If I 'ps -auxw' to see it in the process list, bash is being reported 
as:

emerson  14153  0.0  0.0   916   700 C0  Is+    2:31PM    0:00.01 -bash 
(bash)


I'm trying to understand what the "-" before bash means. If I start 
bash as a subshell, or even 'exec bash', the "-" stops showing up. The 
shell in /etc/passwd and /etc/shells is listed as /usr/local/bin/bash. 

Any idea what the "-" means? I'm worried that I might not have changed 
the shell correctly. If nothing else, I'm just curious where the "-" is 
coming from. =)

Thanks, Emerson



Visit your host, monkey.org