> X=/ cd $X > > cd's to $HOME, not to / ... > > This really violates the POLA, I'd say... Depends on how much shell programming you do. I used to trip over it often enough. The point is that $X is expanded before X=/ is assigned. You run cd (with no arguments) with X set to /.