Hubert Kleinmanns wrote:
Hi Marco,

try:

echo $SHLVL

The value is incremented for each new sub shell - so it will be "1" for login shells 
(which you get with "su - ..."
and with sudo:
21:01 [sum...@bobtail ~]$ sudo bash -c set | grep SHLVL
SHLVL=1
21:02 [sum...@bobtail ~]$




--

Cheers
John

-- spambait
[email protected]  [email protected]
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to