Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-4043: pwd command in dzsh gets incorrect value after cd failure

Authentication Service ,  

10 July,17 at 09:05 AM

Applies to:  Centrify DirectControl Suite 2014.1 and before


In dzsh, with running command
cd to the directory failed, the 'PWD' and 'OLDPWD' environmental variables are changed.

For example,

user1@sues8v3:~> dzsh
dzsh user1 $ echo $PWD $OLDPWD
dzsh user1 $ cd /centrify
dzsh user1 $ echo $PWD $OLDPWD
/centrify /home/user1
>>>pwd command in dzsh gets correct value as expected

Try to cd to unaccessible directory and check the “PWD” and “OLDPWD”

dzsh user1 $ cd /home/user2
cd: can't cd to /home/user2
dzsh user1 $ echo $PWD $OLDPWD
/home/user2 /
>>>pwd command in dzsh gets incorrect value after cd failure which is unexpected


This is a known bug which has been fixed in Centrify DirectControl 5.2.2.