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

Re: pushd/popd/dirs for es



[Noah Friedman (friedman@gnu.ai.mit.edu) writes:]
> I wrote a version of pushd/popd that uses no external programs at all
> except to call an external `pwd' once when it is loaded.  Afterward, `pwd'
> is a shell function that merely prints $dirstack(1).  Canonicalization of
> the pwd is done internally.  It's very fast.

I'm opposed to overriding /bin/pwd. Csh does not do this. It has a separate  
command "dirs" to give you its idea of the current working directory. Pwd  
should grovel the filesystem and give me accurate (i.e. correct) information.  
Think of pwd as relatively low-level functionality. If you want to introduce  
a higher level user interface, give it a different name.

-Z-