I thought I knew unix/bash etc.
The compound statement
cd /lkjsdf ; source junk.1
completes and then logs me off IF the cd directory does not exist. It works fine if the directory does exist. Why is this and how do I fix it.
It doesn't matter what is in junk.1, nothing will do.
cat junk.1 echo hello cd /root ; source junk.1 hello cd /xoot; source junk.1 /xoot: no such file or directory hello Connection to vm2 closed.
This has worked fine for 30 years across all kinds of unix, until Centos 7 came along.