diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2007-09-27 11:47:23 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2007-09-27 11:47:23 +0000 |
| commit | 453ba566097aeb6b4ea811f02858a06dc5549fd7 (patch) | |
| tree | 690f1ce57964a9c1623080db332c95a07ae2817e /Completion/Unix/Command/_comm | |
| parent | 23841: complete tag hashes for git verify-tag. (diff) | |
| download | zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.tar zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.tar.gz zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.tar.bz2 zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.tar.lz zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.tar.xz zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.tar.zst zsh-453ba566097aeb6b4ea811f02858a06dc5549fd7.zip | |
23814: fixes for Darwin.
Diffstat (limited to 'Completion/Unix/Command/_comm')
| -rw-r--r-- | Completion/Unix/Command/_comm | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/Completion/Unix/Command/_comm b/Completion/Unix/Command/_comm index c55378420..e90c317f6 100644 --- a/Completion/Unix/Command/_comm +++ b/Completion/Unix/Command/_comm @@ -1,10 +1,20 @@ #compdef comm -_arguments -s \ - '-1[suppress lines unique to FILE1]' \ - '-2[suppress lines unique to FILE2]' \ - '-3[suppress lines that appear in both files]' \ - '--help' \ - '--version' \ - '1:file1 to compare:_files' \ +local -a args + +args=( + '-1[suppress lines unique to FILE1]' + '-2[suppress lines unique to FILE2]' + '-3[suppress lines that appear in both files]' + '1:file1 to compare:_files' '2:file2 to compare:_files' +) + +if _pick_variant gnu=GNU unix --version; then + args+=( + '(- : *)--version[display version information]' + '(- : *)--help[display help information]' + ) +fi + +_arguments -s $args |
