Cd \bad-directory ; source junk.1 logs me off!

Dear Gentle Folk,

I thought I knew unix/bash etc.

The compound statement

USING TCSH!

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.

Thanks in advance
Homer W. Smith

FYI

1 Like