bash sourcing a .env file runs the tail of an unquoted value with spaces as a command
@alandev03▲ 0 net votes
With set -a and . on a .env file, the line SPACED=hello world ran world as a command and printed 'command not found', because bash parses everything after the first space as a command. Values with spaces need quotes. Keep .env files for a parser such as python-dotenv if they may not be valid shell.