about summary refs log tree commit diff
path: root/Completion/Unix/Command/_sed
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-11-17 18:13:41 +0100
committerOliver Kiddle <opk@zsh.org>2023-11-17 18:13:41 +0100
commit6306dcfaa52237fbaa76eafe7bc396e68eda66ca (patch)
tree818c8bbcf932431e4d28bc5f14fc05cdd616e7b7 /Completion/Unix/Command/_sed
parentddfc81a2b81e19c13f60bfff30f28ed520df8f57 (diff)
downloadzsh-6306dcfaa52237fbaa76eafe7bc396e68eda66ca.tar.gz
zsh-6306dcfaa52237fbaa76eafe7bc396e68eda66ca.tar.xz
zsh-6306dcfaa52237fbaa76eafe7bc396e68eda66ca.zip
52303: updates to completions for macOS 13
Diffstat (limited to 'Completion/Unix/Command/_sed')
-rw-r--r--Completion/Unix/Command/_sed5
1 files changed, 2 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_sed b/Completion/Unix/Command/_sed
index 79a010c92..ef3aaf2fd 100644
--- a/Completion/Unix/Command/_sed
+++ b/Completion/Unix/Command/_sed
@@ -104,14 +104,13 @@ else
   case $OSTYPE in
     openbsd*|freebsd*|netbsd*|darwin*|dragonfly*)
       args+=(
-	'(-r -E)'-E$extended
+	'(-r -E)'{-E,-r}$extended
 	'-a[delay opening files listed with w function]'
       )
     ;|
-    openbsd*|freebsd*|netbsd*|dragonfly*) args+=( '(-r -E)'-r$extended ) ;|
     darwin*|freebsd*|netbsd*|openbsd*|dragonfly*) args+=( '-i+'$inplace ) ;|
     darwin*|freebsd*|netbsd*|dragonfly*) args+=( '-l[make output line buffered]' ) ;|
-    freebsd*|dragonfly*) args+=( '-u[disable data buffering]' ) ;|
+    darwin*|freebsd*|dragonfly*) args+=( '-u[disable data buffering]' ) ;|
     freebsd*|netbsd*|dragonfly*)
       args+=(
         '-I+[edit files in-place, treating all files as a single input stream]:: :_guard "^(*[@/; \\\]*|?(#c6,)|-*)" "suffix for backup"'