when I source in a .profile, variables are somehow checked, and generating an error (listed)
contents of .profile
export foo=/a/location/that/dosnt/exist
when I source it it via . .profile
I get the error and other variables dont get set the script just craps out.
the error = : not foundmyusername/.profile
or bad identifier
this dosnt happen on other versions of UNIX - only some linuxes
so the interperter is checking of foos path is valid... if not if bombs out
It's shell specific. I lean to to the pedantic portable side.
Give it a go, see if it makes a difference.
Why does an error stop other variables being set?
Personally I've never heard of variable checking in an assignment statement, how would the shell have any idea what was valid. If what you are saying is correct I could not do...
well... thanks for the sanity check. I seems there must have been some special (hidden) characters in the profile. I created a new file and the variables wourk as expected....