I was wondering if there is a convention for file type extensions for shell scripts you want to source instead of run. For example:
If I want to run this script in a subshell.
If I want to remember to run this script from the current shell.
Is there a convention (like POSIX for example) for a filetype in the second example? Something like
This question does not ask about any opinion. I clearly stated that I would like to know if there is a standardized file extension for this kind of scripts. This question is even less opinion-based than this well received question on a similar issue (Use .sh or .bash extension for bash scripts?).