Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _chown on Mac OS X/Darwin
- X-seq: zsh-workers 20059
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: _chown on Mac OS X/Darwin
- Date: Wed, 16 Jun 2004 17:04:58 +0200
- Cc: lists <lists@xxxxxxxxxxxxxxxx>
- In-reply-to: <DED3240A-BF47-11D8-BDC7-000A95D2C79E@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <DED3240A-BF47-11D8-BDC7-000A95D2C79E@xxxxxxxxxxxxxxxx>
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