[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-userlevel
Subject:    Re: X=1 :
From:       Edgar =?iso-8859-1?B?RnXf?= <ef () math ! uni-bonn ! de>
Date:       2018-11-26 9:23:49
Message-ID: 20181126092349.GK12671 () trav ! math ! uni-bonn ! de
[Download RAW message or body]

>     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 /.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic