On Tue, Jul 02, 2002 at 11:27:39AM +0200, Juan Fal wrote: > PWD=\/Users\/me\/tmp\/tmp; export PWD > > trying to assign a value to PWD. Then I have just try > > ~ 151% sh > me% PWD=HOLATIO > zsh: read-only variable: PWD > me%
Why not just 'cd'? And why all the escaping? I don't know much about at, but it should not be necessary. Also, the reason why zsh does not allow writing to PWD is because it's trying to be more like sh! Compare: [rattle:~] nicholas% sh rattle% PWD=/asdf zsh: read-only variable: PWD rattle% [rattle:~] nicholas% zsh [p7:1821] ~%PWD=/asdf [p7:1822] ~%echo $PWD /asdf So I would question the utility of any script that tries to write to PWD... what's the point? You can get it to work by changing #!/bin/sh to #!/bin/zsh though. > the problem seems to be there, sh does not admit this. But WHY zsh. Look! > > 11:21:01 ~ 152% l /bin/zsh > -rwxr-xr-x 1 root wheel 449616 Dec 31 2001 /bin/zsh > 11:21:08 ~ 153% l /bin/sh > -r-xr-xr-x 1 root wheel 449616 Dec 31 2001 /bin/sh sh _is_ zsh in Mac OS X 10.0 and 10.1. It will be bash in 10.2. -- =Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley> Pablo Research Group, Department of Computer Science and Medical Scholars Program, University of Illinois at Urbana-Champaign ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
