I’m running a shell script into Linus and I have a unexpected behavior. It looks like it is not concat both strings but rather it is appending data at the beginning. Any suggestion? Regards Answer When the value of TOOLBOX_ROOT was set, it had a carriage return ($’r’) at the end of it. As a result, the value of the
Tag: export
Reading and exporting key-value pairs from a file in bash script (without caching)
I have the following project directory structure: Where run.sh looks like: Where .env is a properties file of key=value pairs like so: The setenv.sh script needs to read the key-value pairs out of .env and export/source them, so that run.sh can reference them at runtime and they will evaluate to whatever their values are in .env. The run.sh script and