where is a function defined

This commit is contained in:
Morgan Wattiez 2019-09-30 13:21:18 +02:00
parent 14e8fcb0de
commit c0d07b5dd3

View File

@ -185,3 +185,8 @@ transfer() {
# cleanup
rm -f $tmpfile
}
# Where is a function defined?
function whichfunc() {
whence -v $1
type -a $1
}