I'm trying to create a separate bash process and echo a variable which is set inside of it with no success. Nothing gets echoed.
bash -c "COMMIT_DIFF_FILE=diffs.diff && echo -e ${COMMIT_DIFF_FILE}"
What could be the problem here? Many thanks in advance!