zsh-workers
 help / color / mirror / code / Atom feed
* [patch] Update _chown
@ 2018-04-14  3:28 Matthew Martin
  2018-04-14  5:27 ` Eitan Adler
  2018-04-16 14:42 ` Oliver Kiddle
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew Martin @ 2018-04-14  3:28 UTC (permalink / raw)
  To: zsh-workers

OpenBSD does not support -f and dragonfly has -x.

- Matthew Martin


diff --git a/Completion/Unix/Command/_chown b/Completion/Unix/Command/_chown
index c3abb5858..70ca48155 100644
--- a/Completion/Unix/Command/_chown
+++ b/Completion/Unix/Command/_chown
@@ -23,7 +23,6 @@ if _pick_variant gnu=Free\ Soft unix --version; then
       args+=( '--from=[restrict changes to files by current ownership]: :->owner' )
 else
   args=(
-    "-f[don't report errors]"
     "-h[operate on symlinks them self]"
     '-R[change files and directories recursively]'
     '(-H -L -P)-L[follow all symlinks]'
@@ -31,7 +30,8 @@ else
     '(-H -L -P)-P[do not follow symlinks (default)]'
   )
   for pattern arg in \
-    'freebsd*' "-x[don't traverse file systems]" \
+    '(dragonfly|freebsd)*' "-x[don't traverse file systems]" \
+    '(darwin|dragonfly|(free|net)bsd)*' "-f[don't report errors]" \
     '(darwin|dragonfly|(free|net)bsd)*' '-v[output info for every file processed]' \
     'solaris2.<11->' '-s[owner and/or group are Windows SID strings]'
   do


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

* Re: [patch] Update _chown
  2018-04-14  3:28 [patch] Update _chown Matthew Martin
@ 2018-04-14  5:27 ` Eitan Adler
  2018-04-16 14:42 ` Oliver Kiddle
  1 sibling, 0 replies; 3+ messages in thread
From: Eitan Adler @ 2018-04-14  5:27 UTC (permalink / raw)
  To: Zsh hackers list

On 13 April 2018 at 20:28, Matthew Martin <phy1729@gmail.com> wrote:
> OpenBSD does not support -f and dragonfly has -x.

LGTM



-- 
Eitan Adler


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

* Re: [patch] Update _chown
  2018-04-14  3:28 [patch] Update _chown Matthew Martin
  2018-04-14  5:27 ` Eitan Adler
@ 2018-04-16 14:42 ` Oliver Kiddle
  1 sibling, 0 replies; 3+ messages in thread
From: Oliver Kiddle @ 2018-04-16 14:42 UTC (permalink / raw)
  To: zsh-workers

On 13 Apr, Matthew Martin wrote:
> OpenBSD does not support -f and dragonfly has -x.
> diff --git a/Completion/Unix/Command/_chown b/Completion/Unix/Command/_chown

However, Solaris' chown does have -f. I've tweaked the patch
accordingly and applied. Thanks.

Oliver


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

end of thread, other threads:[~2018-04-16 14:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-14  3:28 [patch] Update _chown Matthew Martin
2018-04-14  5:27 ` Eitan Adler
2018-04-16 14:42 ` Oliver Kiddle

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