tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: X=1 :



>     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 /.


Home | Main Index | Thread Index | Old Index