I'm launching my script from echo $PWD ---> /x. I want my script to change my current directory. So my script contains +- this :
cd /y exit 0
However, when my script ends, I'm stils in echo $PWD ---> /x. I'd like to be in /y. Why doesn't it work ?
I'm launching my script simply by doing : [myScriptName]