I have a function err() in file abc. The files do not have a .sh extension, but they start with #!/bin/bash.
err () {
echo "${1}" >&2
}
Now I am importing it in a different file xyz:
source abc
someFunction(){
err "Failed to back up"
}
Is this the right way of importing?