zsh-workers
 help / color / mirror / code / Atom feed
* _chown on Mac OS X/Darwin
@ 2004-06-16  3:47 lists
  2004-06-16 15:04 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: lists @ 2004-06-16  3:47 UTC (permalink / raw)
  To: zsh-workers

Hello,
	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've been using this change without issue for a while on Mac OS 10.3 
and Mac OS 10.3 Server.  I'm happy to test on older versions (10.1 and 
10.2) as well if you like.  Thanks for all of your work.

-Ryan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: _chown on Mac OS X/Darwin
  2004-06-16  3:47 _chown on Mac OS X/Darwin lists
@ 2004-06-16 15:04 ` Oliver Kiddle
  2004-06-16 15:19   ` Clint Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2004-06-16 15:04 UTC (permalink / raw)
  To: Zsh workers; +Cc: lists

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: _chown on Mac OS X/Darwin
  2004-06-16 15:04 ` Oliver Kiddle
@ 2004-06-16 15:19   ` Clint Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Clint Adams @ 2004-06-16 15:19 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: Zsh workers, lists

> 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

I think SunOS 4 uses '.' (as does Solaris /usr/ucb/chown).


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-16 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16  3:47 _chown on Mac OS X/Darwin lists
2004-06-16 15:04 ` Oliver Kiddle
2004-06-16 15:19   ` Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).