I read multiple articles refering the login shell and non-login shell,
still, I am very confused.
Difference between Login Shell and Non-Login Shell? - Unix & Linux Stack Exchange
The UNIX School: Login shell or a non-login shell?
Put it simple,
the shell I start from my own computer after I power on it,
Isn't it a login shell or non-login shell?
$ echo $SHELL /bin/bash $ echo $0 -bash
Additionally, Could you please help to determine taht the shell called from a program is login shell or not?
import subprocess subprocess.run('ls -l', shell=True)