May 16, 2005 #1 ogniemi Technical User Joined Nov 7, 2003 Messages 1,041 Location PL root@boxb# pwd / root@boxb# ls -ld /usr/123 ls: 0653-341 The file /usr/123 does not exist. root@boxb# [ -d /usr/123/456/789/../../../bin ] root@boxb# echo $? 1 root@boxb# cd /usr/123/456/789/../../../bin root@boxb# echo $? 0 root@boxb# pwd /usr/bin
root@boxb# pwd / root@boxb# ls -ld /usr/123 ls: 0653-341 The file /usr/123 does not exist. root@boxb# [ -d /usr/123/456/789/../../../bin ] root@boxb# echo $? 1 root@boxb# cd /usr/123/456/789/../../../bin root@boxb# echo $? 0 root@boxb# pwd /usr/bin
May 17, 2005 #2 p5wizard IS-IT--Management Joined Apr 18, 2005 Messages 3,165 Location BE The cd builtin in ksh apparently 'calculates' where you want it to go, then moves in one swift motion... The cd in bsh, csh or bash move one dir at a time and will fail on the first non-existent dir. HTH, p5wizard Upvote 0 Downvote
The cd builtin in ksh apparently 'calculates' where you want it to go, then moves in one swift motion... The cd in bsh, csh or bash move one dir at a time and will fail on the first non-existent dir. HTH, p5wizard