Hubert Kleinmanns wrote:
Mario,
I fear, I misunderstood your question (or you misunderstood my answer ;-) )
Marco didn't explain what problem he's trying to solve, so we all have
to guess.
"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:-)
--
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