Was I Sourced?

Tim Daneliuk tundra at tundraware.com
Tue Feb 12 14:54:34 UTC 2013


Is there a way for script to determine whether is was sourced
or forked off as a subprocess when it was invoked?

I have a script that needs to be sourced to work properly and
I want to warn the luser if they exec or subshell it instead.

TIA,
-- 
-----------------------------------------------------------------------
Tim Daneliuk


More information about the freebsd-questions mailing list