shell-init: error retrieving current directory: getcwd
I have a customized command set-active-host in /usr/local/bin dir .
Below is the scenario:-
on terminal1
mkdir /tmp/junk
on terminal2
cd /tmp/junk
on terminal 1
rm -rf /tmp/junk
on terminal 2 i executed the command set-active-host
i get below errors:-
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory Running set-active-host as user root. Please help.
note: other commands like ps and ls are running fine.
|