K.S. Bhaskar on 19 Apr 2019 07:50:41 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Determining when a shell script is sourced |
If this is a concern, a better approach may be to have the script clean
up after itself so that nothing leaks into the shell that sources it.
In bash, at least, you can do things like "unset -f" to get rid of
functions, "type -t" to check for existing functions so you don't
replace them, etc.
Gary Duzan
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug