about summary refs log tree commit diff
path: root/Completion/Unix/Command/_ldd
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2007-06-29 08:51:57 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2007-06-29 08:51:57 +0000
commit622d3e7f1d222cd97422ebea6f176714a3305579 (patch)
tree784a39f9ce9d0c2fc41bb2abebe773b25059b159 /Completion/Unix/Command/_ldd
parent0e7a50be36a3236026c23700756312c7d065a013 (diff)
downloadzsh-622d3e7f1d222cd97422ebea6f176714a3305579.tar.gz
zsh-622d3e7f1d222cd97422ebea6f176714a3305579.tar.xz
zsh-622d3e7f1d222cd97422ebea6f176714a3305579.zip
23611: new completions for ldd and LD_DEBUG on Solaris and Linux
Diffstat (limited to 'Completion/Unix/Command/_ldd')
-rw-r--r--Completion/Unix/Command/_ldd32
1 files changed, 32 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_ldd b/Completion/Unix/Command/_ldd
new file mode 100644
index 000000000..e739181d6
--- /dev/null
+++ b/Completion/Unix/Command/_ldd
@@ -0,0 +1,32 @@
+#compdef ldd
+
+if _pick_variant gnu=GNU solaris --version; then
+  args=(
+    '(- *)--version[display version information]'
+    '(- *)--help[display help information]'
+    '(-v --verbose)'{-v,--verbose}'[include symbol versioning information]'
+    '(-d --data-relocs)'{-d,--data-relocs}'[perform data relocations and report missing objects]'
+    '(-f --function-relocs)'{-f,--function-relocs}'[perform data/function relocations and report missing objects]'
+    '(-u --unused)'{-u,--unused}'[display any unused objects]'
+  )
+else
+  args=(
+    -s
+    '(-r)-d[check immediate references]'
+    '(-d)-r[check immediate and lazy references]'
+    '-u[display any unused objects]'
+    '-U[display any unreferenced, or unused dependencies]'
+    '-e[set specified environment variable]:environment variable:(LD_PRELOAD LD_LIBRARY_PATH LD_RUN_PATH LD_DEBUG LD_DEBUG_OUTPUT LD_NOCONFIG LD_NOAUXFLTR)'
+    '-f[check for insecure executable]'
+    '-i[display order of execution of initialization sections]'
+    '-L[enable lazy loading]'
+    '-l[force immediate processing of any filters]'
+    '-s[display search path used]'
+    '-v[displays all dependency relationships]'
+  )
+fi
+
+_arguments $args \
+  '*: : _alternative
+    "executables:executable:_files -g \^\*.so\(\*\)"
+      "shared-objects:shared object:_files -g \*.so"'