zsh-workers
 help / color / mirror / code / Atom feed
* a fix for _chown
@ 2001-07-14  7:05 Akinori MUSHA
  2001-07-17 11:00 ` Oliver Kiddle
  0 siblings, 1 reply; 3+ messages in thread
From: Akinori MUSHA @ 2001-07-14  7:05 UTC (permalink / raw)
  To: zsh-workers

Hello,

The following patch fixes the _chown compdef for *BSD.

Recently FreeBSD 5.0-CURRENT dropped the support for the non-POSIX
notation of the "user.group" style.  Since all the BSD's have chown(1)
that understands the "user:group" style nowadays, I think this is a
reasonable and safe fix for *BSD.

--- _chown.orig Sat Jul 14 15:58:00 2001
+++ _chown      Sat Jul 14 15:58:38 2001
@@ -9,7 +9,7 @@
     fi
     _groups && return 0
   else
-    if [[ $OSTYPE = (solaris*|hpux*) ]]; then
+    if [[ $OSTYPE = (solaris*|hpux*|*bsd*) ]]; then
       suf=':'
     else
       suf='.'


Regards,

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Freeze this moment a little bit longer, make each impression
  a little bit stronger..  Experience slips away -- Time stand still"


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

* Re: a fix for _chown
  2001-07-14  7:05 a fix for _chown Akinori MUSHA
@ 2001-07-17 11:00 ` Oliver Kiddle
  2001-07-17 23:42   ` David Terrell
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Kiddle @ 2001-07-17 11:00 UTC (permalink / raw)
  To: Akinori MUSHA; +Cc: zsh-workers

Akinori MUSHA wrote:

> The following patch fixes the _chown compdef for *BSD.

Seeing as it hasn't yet been, I'll commit this, to both branches.

> Recently FreeBSD 5.0-CURRENT dropped the support for the non-POSIX
> notation of the "user.group" style.

Urgh, do you know why? Surely support for `.' is no more than about two
lines of code and isn't doing any harm. Admittedly, I'm not a FreeBSD
user but having first learnt it as `.' I'd find this quite annoying.

Oliver

_____________________________________________________________________
This message has been checked for all known viruses by the 
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp


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

* Re: a fix for _chown
  2001-07-17 11:00 ` Oliver Kiddle
@ 2001-07-17 23:42   ` David Terrell
  0 siblings, 0 replies; 3+ messages in thread
From: David Terrell @ 2001-07-17 23:42 UTC (permalink / raw)
  To: Oliver Kiddle; +Cc: Akinori MUSHA, zsh-workers

On Tue, Jul 17, 2001 at 12:00:49PM +0100, Oliver Kiddle wrote:
> > Recently FreeBSD 5.0-CURRENT dropped the support for the non-POSIX
> > notation of the "user.group" style.
> 
> Urgh, do you know why? Surely support for `.' is no more than about two
> lines of code and isn't doing any harm. Admittedly, I'm not a FreeBSD
> user but having first learnt it as `.' I'd find this quite annoying.

Probably to support '.' characters in usernames.

-- 
David Terrell | "And even when states do spring for essay questions, the 
dbt@meat.net  | testing companies turn over the scoring of these writing 
samples to temps making less than $10 an hour.  Aren't America's teachers 
better prepared to evaluate our kids than some part-time rent-a-readers?"


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

end of thread, other threads:[~2001-07-17 23:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-14  7:05 a fix for _chown Akinori MUSHA
2001-07-17 11:00 ` Oliver Kiddle
2001-07-17 23:42   ` David Terrell

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).