about summary refs log tree commit diff
path: root/Completion/Unix/Command/_elfdump
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-10-11 00:57:16 +0200
committerOliver Kiddle <opk@zsh.org>2023-10-11 00:57:16 +0200
commit985952e2f616c816e24c4cf5aee70416e4f23e07 (patch)
treee37424c3fec594ba2e03217ee4915f7b1276035c /Completion/Unix/Command/_elfdump
parent4878c2b1307d54cbdc218ee674403c03bc1e02c1 (diff)
downloadzsh-985952e2f616c816e24c4cf5aee70416e4f23e07.tar.gz
zsh-985952e2f616c816e24c4cf5aee70416e4f23e07.tar.xz
zsh-985952e2f616c816e24c4cf5aee70416e4f23e07.zip
52217: update completions for FreeBSD 14
Diffstat (limited to 'Completion/Unix/Command/_elfdump')
-rw-r--r--Completion/Unix/Command/_elfdump11
1 files changed, 8 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_elfdump b/Completion/Unix/Command/_elfdump
index 065f4b97f..b3cc77695 100644
--- a/Completion/Unix/Command/_elfdump
+++ b/Completion/Unix/Command/_elfdump
@@ -34,10 +34,15 @@ case $OSTYPE in
       '-l[show long section names without truncation]'
       '-O[specify osabi to apply]:osabi'
       '-P[use alternative section header]'
-      "*:elf file:_object_files"
     )
   ;;
-  freebsd*) args+=( '-a[dump all information]' ) ;;
+  freebsd*)
+    args+=(
+      '-a[dump all information]'
+      '(-)-E[return success if file is an ELF file and failure if not]'
+    )
+  ;;
 esac
 
-_arguments -s $args
+_arguments -s $args \
+  "*:elf file:_object_files"