KSH shell on Solaris 10.

From: rajeev.andrews@wipro.com
Date: Fri Mar 03 2006 - 07:00:40 EST


Hi All,

  In Solaris 10,created a user with with ksh as the user shell.Created a
Symbolic link to one directory.
With the parent shell get into the directory and give pwd command.It
gives one out put.Started a child shell(ksh) and give the pwd command
this time I am getting a different output.Please see the example below

     Created a temp_test/top directory in /opt/rajeev.Created a symbolic
link in /opt/rajeev as top.Now I am in the parent shell and get into top
(using cd command ) and if I give pwd it gives opt/rajeev/top and again
if start a ksh shell(child process) and gives pwd it shows
/opt/rajeev/temp_test/top.

$ pwd
/opt/rajeev
$ ls
temp_test
$ ln -s ./temp_test/top top
$ ls -ltr
total 4
drwxr-xr-x 3 rajeev other 512 Mar 3 16:04 temp_test
lrwxrwxrwx 1 rajeev other 15 Mar 3 16:05 top ->
./temp_test/top
$ ps
   PID TTY TIME CMD
 20259 pts/19 0:00 ps
 20243 pts/19 0:00 ksh
$ cd top
$ pwd
/opt/rajeev/top
$ ksh
$ pwd
/opt/rajeev/temp_test/top
$ ps
   PID TTY TIME CMD
 20261 pts/19 0:00 ps
 20260 pts/19 0:00 ksh
 20243 pts/19 0:00 ksh

This change I found only in Solaris 10.Is this is bug or the feature of
ksh.I doubt about the feature since this is not happening in Solaris 9 &
8.

SunOS xxxxx 5.10 Generic_118822-27 sun4u sparc SUNW,Sun-Fire-V440

/etc/release - Solaris 10 3/05 s10_74L2a SPARC
           Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 22 January 2005

Please advice how to solve this.

Thanks & Regards
Rajeev Andrews

The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not
the intended recipient, you should not disseminate, distribute or copy this
e-mail. Please notify the sender immediately and destroy all copies of this
message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.

www.wipro.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:11 EDT