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

a fix for _chown



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"



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