Hi
You should add the latest shell patches
The ksh patch which is what I guess you are using includes
4. Using "~user" to refer to user's home directory fails for users in NSS, NIS+ or LDAP.
Patch Name: PHCO_22712
Patch Description: s700_800 11.00 ksh(1) cumulative patch
Creation Date: 00/11/12
Post Date: 00/11/15
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)