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

Re: [PATCH] _fuser Solaris and SVR4 support



Danek Duvall wrote:
> Another thing to note is that the value of $OSTYPE is compiled in, so
> relying on it may be the wrong thing if zsh is mounted from a shared
> directory.  Features also may be backported to older releases, so even the
> output of uname -r isn't necessarily going to be right.

That applies to quite a lot of completion functions then. I suggest we
just stick to $OSTYPE for this for now and worry about fixing the wider
problem separately.

> Here's a proposed patch that parses the output of "fuser -?".  It works
> correctly for Solaris 8, 9, and 10, AFAICT.  Coming up with this was just
> too difficult, and someone surely can figure out a better way of doing it.

Have a look at _finger. It does something very similar in a way that
looks less complicated. If we try something like this, it could be good
if it also handled the psmisc (Linux) implementation of fuser.

Oliver

PS. Imediately after hitting send for my last message I realised that
what I was said about breaking file completion was crap so ignore that.
Sorry.



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