Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: named directory bug



Bart Schaefer wrote:
> I've thought using parameters for named directories was a bad idea for a
> very long time, ever since my csh-junkie hack of `chpwd () { cwd=$PWD }'
> started causing `~cwd' to show up in my prompt.  (Guess when autonamedirs
> became an option rather than the default behavior.)  At the very least I
> think there should be a parameter flag for "this parameter is a nameddir"
> checked by unsetparam_pm() and strsetfn() before calling adduserdir().

Would it help if we avoid local variables becoming directory names, or at
least checked if there was already a name before adding one for a local
variable?

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 392070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author