I am trying to reload .profile from the below script, but that doesn't work at all. #!/bin/kshsed -i '/export rel=Rel1510_Linux/c\export rel=Rel1602_MX' ~/.profilesource ~/.profileWhen I run this script, it just performs the sed operation but reload doesn't happen. A sample run is below:rk248c:/opt/app/capm/users/rk248c/Rel1510_Linux> ./switchTo1602.kshrk248c:/opt/app/capm/users/rk248c/Rel1510_Linux>And thus, I have to run source from the terminal directly to reload the profile.rk248c:/opt/app/capm/users/rk248c/Rel1510_Linux> source ~/.profilerk248c:/opt/app/capm/users/rk248c/Rel1602_MX>What am I missing here ? Please help.
cannot reload .profile from script
linux;shell script;ksh