diff options
author | Oliver Kiddle <opk@zsh.org> | 2025-01-27 23:00:17 +0100 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2025-01-27 23:00:17 +0100 |
commit | 87aba4d437f5fef46917c1235c00b9162d7bcbd0 (patch) | |
tree | ce578175d1248d14b8237ad86121b9396550c226 /Completion/Unix/Command/_sed | |
parent | db01c79cf83290b9ac9d77e66d832551b7022f71 (diff) | |
download | zsh-87aba4d437f5fef46917c1235c00b9162d7bcbd0.tar.gz zsh-87aba4d437f5fef46917c1235c00b9162d7bcbd0.zip |
53325: cover newer BSD releases in completion
Diffstat (limited to 'Completion/Unix/Command/_sed')
-rw-r--r-- | Completion/Unix/Command/_sed | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_sed b/Completion/Unix/Command/_sed index ef3aaf2fd..ecbec61d1 100644 --- a/Completion/Unix/Command/_sed +++ b/Completion/Unix/Command/_sed @@ -104,7 +104,7 @@ else case $OSTYPE in openbsd*|freebsd*|netbsd*|darwin*|dragonfly*) args+=( - '(-r -E)'{-E,-r}$extended + '(-r -E -H)'{-E,-r}$extended '-a[delay opening files listed with w function]' ) ;| @@ -115,8 +115,10 @@ else args+=( '-I+[edit files in-place, treating all files as a single input stream]:: :_guard "^(*[@/; \\\]*|?(#c6,)|-*)" "suffix for backup"' ) - ;; + ;| openbsd*) args+=( '-u[make output line buffered]' ) ;; + darwin*) args+=( '(-r -E)-H[use enhanced regular expressions]' ) ;; + netbsd*) args+=( '(-r -E)-g[use GNU regular expressions]' '!(-r -E -g)-G' ) ;; esac fi |