I have a script that uses sh shell. I get an error in the line that uses the source command. It seems source is not included in my sh shell.
If I explicitly try to run source from shell I get:
sh: 1: source: not found
Should I somehow install “source”? Do I have a wrong version of sh?
/bin/shis usually some other shell trying to mimic The Shell. Many distributions use/bin/bashforsh, it supportssource. On Ubuntu, though,/bin/dashis used which does not supportsource. Most shells use.instead ofsource. If you cannot edit the script, try to change the shell which runs it.