zsh-workers
 help / color / mirror / code / Atom feed
From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: New completions
Date: 18 Jun 1999 21:06:31 +0900	[thread overview]
Message-ID: <rsq3dzpd86w.fsf@crane.jaist.ac.jp> (raw)
In-Reply-To: "Kiddle, Oliver"'s message of "Fri, 18 Jun 1999 10:30:48 +0100"

In article <4FBF540FF16FD1119D9600A0C94B2B51F29E90@napier.logica.co.uk>,
  "Kiddle, Oliver" <KiddleO@logica.com> writes:

> + #compdef chown chgrp

This uses "." as a separator between owner and group for chown.
But SunOS 5.x uses ":" instead of ".".

--- Completion/User/_chown-	Fri Jun 18 20:55:51 1999
+++ Completion/User/_chown	Fri Jun 18 20:54:45 1999
@@ -1,10 +1,13 @@
 #compdef chown chgrp
 
 if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
-  if [[ $words[1] = chgrp ]] || compset -P '*.'; then
+  if [[ $words[1] = chgrp ]] || compset -P '*[:.]'; then
     _groups
   else
-    compgen -u -S '.' -q
+    case $OSTYPE in
+      solaris*) compgen -u -S ':' -q;;
+      *) compgen -u -S '.' -q;;
+    esac
   fi
 else
   _files

Hm. FreeBSD supports "." in addition to ":" even though chown(8)
doesn't explain.
-- 
Tanaka Akira


  reply	other threads:[~1999-06-18 12:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-18  9:30 Kiddle, Oliver
1999-06-18 12:06 ` Tanaka Akira [this message]
1999-06-18 10:01 Sven Wischnowsky
1999-06-18 10:36 Sven Wischnowsky
1999-06-18 12:49 Kiddle, Oliver
1999-06-18 13:04 ` Falk Hueffner
1999-06-18 13:31   ` Tanaka Akira
1999-06-18 13:27 ` Tanaka Akira
2004-01-14 16:58 PATCH: new completions Oliver Kiddle
2004-01-15  7:33 ` Bart Schaefer
2004-01-15  9:41   ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=rsq3dzpd86w.fsf@crane.jaist.ac.jp \
    --to=akr@jaist.ac.jp \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).