# utils.sh
#!/bin/sh
myfunc() {
echo "hello from myfunc"
echo "Caller script: $1"
}
#----------------------- begin caller script
# now myfunc is called in another script:
# and I'd like that myfunc echos the caller script!!!
#!/bin/sh
source ./utils
myfunc $( basename $0 )
#---------------------- end caller script