summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:59:57 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:59:57 +0000
commitc352138cfa5e482110578331b3b53e9a46b72796 (patch)
treea89b4843df7d96d70242dbec445883c74b00ea92 /Completion/Unix/Command
parentmoved to Completion/Unix/Command/_perl (diff)
downloadzsh-c352138cfa5e482110578331b3b53e9a46b72796.tar
zsh-c352138cfa5e482110578331b3b53e9a46b72796.tar.gz
zsh-c352138cfa5e482110578331b3b53e9a46b72796.tar.bz2
zsh-c352138cfa5e482110578331b3b53e9a46b72796.tar.lz
zsh-c352138cfa5e482110578331b3b53e9a46b72796.tar.xz
zsh-c352138cfa5e482110578331b3b53e9a46b72796.tar.zst
zsh-c352138cfa5e482110578331b3b53e9a46b72796.zip
moved from Completion/User/_perl
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_perl65
1 files changed, 65 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_perl b/Completion/Unix/Command/_perl
new file mode 100644
index 000000000..64163c3a1
--- /dev/null
+++ b/Completion/Unix/Command/_perl
@@ -0,0 +1,65 @@
+#compdef perl
+#
+# zsh completion code for the Perl interpreter
+# Adam Spiers <adam@spiers.net>
+#
+
+_perl () {
+ _arguments -s \
+ '-0-:input record separator in octal (\0, if no argument): ' \
+ '-a[autosplit mode with -n or -p (splits $_ into @F)]' \
+ "-c[check syntax only (runs BEGIN and END blocks)]" \
+ '-d[run scripts under debugger]' \
+ '-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules' \
+ '-D-:set debugging flags (argument is a bit mask or flags): ' \
+ "*-e+:one line of script. Several -e's allowed. Omit [programfile]." \
+ "-F-:split() pattern for autosplit (-a). The //'s are optional.: " \
+ '-h[list help summary]' \
+ '-i-[edit <> files in place (make backup if extension supplied)]:backup file extension: ' \
+ '*-I-[specify @INC/#include directory (may be used more than once)]:include path:_files -/' \
+ '-l-[enable line ending processing, specifies line terminator]:output record separator in octal: ' \
+ \*{-m,-M}"-[module.. executes \`use/no module...' before executing your script.]:module:_perl_m_opt" \
+ "-n[assume 'while (<>) { ... }' loop around your script]" \
+ "-p[assume loop like -n but print line also like sed]" \
+ "-P[run script through C preprocessor before compilation]" \
+ "-s[enable some switch parsing for switches after script name]" \
+ "-S[look for the script using PATH environment variable]" \
+ "-T[turn on tainting checks]" \
+ "-u[dump core after parsing script]" \