I have a script ("foo") that gets installed as an executable command on the path. I can invoke
on the commandline to get the currently installed version.
But sometimes I like to run a development version by running
Is there a way that I can tell if
was invoked by calling
or if it was called using the full path?