Pre-script: I'm glad that you got your problem solved.
On 8/20/23 1:17 PM, Tom Longfellow wrote:
I don't know all the technical aspects of SHLVL (shell level?) -
but they did not match.
Yes, "SHLVL" is short for "shell level".
Shell level is simply a count of how many shells deep you are. Shell
level in and of itself shouldn't have any impact on how the sell operates.
It is possible to have profile et al. files behave differently by
testing shell level and acting differently based on it's value. -- I
have done this myself to decide if I want the shell level shown in the
prompt if it's > 1.
N.B. shell level is a read-write variable. You can easily change it to
anything you want. I had a system a while ago that the GUI desktop
environment that it had caused shells started in terminal emulators to
have a shell level of three. I simply altered my logic to test if it
was three and on a given host. If that was the case, I'd re-set it back
to one. This was a hack to not have to fight figuring out why the shell
level was three upon invoking the shell.
Grant. . . .
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN