Is there any way to check from within a bsh script whether it was
invoked directly via the command line, or sourced from another script or
from the desktop?
I'm looking for something similar in functionality to Python's "if
__name__ == '__main__'" construct.
Get latest updates about Open Source Projects, Conferences and News.