Difference between .profile and .~/.profile

what is the difference between these two lines, if we use it in korn shell script:

.profile

.~/.profile

You mean

. ~/.profile

When you say
.profile
it say to spawn a new child shell and execute the script.
while when u say
. ~/.profile
it means you are executing the script in present shell.

say if you have any variables in .profile and unless u export in first case they will not be visible to parent shell. while in second case u will have variable set at current shell level, and will be access even if they are not exported.

rishi

yes, I mean the same.