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

Re: _chown on Mac OS X/Darwin



lists wrote:
> 	I have a small feature request for _chown.  Could this line:
> 
> elif [[ $OSTYPE = (solaris*|hpux*|*bsd*|linux*) ]]; then
> 
> get changed to this please?:
> 
> elif [[ $OSTYPE = (solaris*|hpux*|*bsd*|linux*|darwin*) ]]; then

I think I'm just going to reverse the sense of this. It is older
systems that tend to use `.'

Please say if you know of any other systems which use `.'. And let me
know what OSTYPE would be. Anyone know what old SunOS uses?  Even for
IRIX, I only know this to be right for IRIX 5.

Oliver

Index: _chown
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_chown,v
retrieving revision 1.9
diff -u -r1.9 _chown
--- _chown	4 Dec 2003 14:23:31 -0000	1.9
+++ _chown	16 Jun 2004 14:53:36 -0000
@@ -39,10 +39,10 @@
     else
       if compset -S '[.:]*'; then
         suf=()
-      elif [[ $OSTYPE = (solaris*|hpux*|*bsd*|linux*) ]]; then
-	suf=( -qS ':' )
-      else
+      elif [[ $OSTYPE = irix* ]]; then
 	suf=( -qS '.' )
+      else
+	suf=( -qS ':' )
       fi
       _users "$suf[@]" && ret=0
     fi



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