All Questions
Tagged with daemon shell-script
1
question
1
vote
1
answer
2k
views
No need for export when running functions in subshell
I have a msource.sh script that will be sourced:
$ cat msource.sh
#!/usr/bin/env sh
echo "($BASHPID) - sourced ${BASH_SOURCE[0]}" &>> "$logfile"
# logfile is defined by the sourcing ...