Hubert Kleinmanns wrote:
"echo $SHLVL" returns always "1" after a "su - ...", but another value after a "su
..." (without th dash). I thought, this was what you would like to see.
There are several mechanism, to distinguish between the primary login shell and a
"su ..." shell:
I for one don't see why that might be useful:-)
To find out if you use the original environment or the environment of the SUed
user.
Why is that useful?
--
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