After start a shell from confd cli by implementing a clispec command, which specify a /bin/bash in <osCommand> tag, I notice that the bash session is nested session, it seems that confd starts the bash session from a bash shell. it seems OK, but is it possible to start a bash session without nested manner?
Thanks assistance on this.
When bash starts, it checks the environment variable, and if present increments it by 1. So it seems you started ConfD from a bash shell with SHLVL=1. Thus this setting is in ConfD’s environment, and inherited all the way down to the bash process that ConfD starts. If it bothers you, you can try ‘unset SHLVL’ before starting ConfD.