Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 1/4] _perl: fix -c option description



With -c, END blocks are *not* run.  BEGIN blocks are, but
there are other kinds of block still (some run, some not
run), and the specifics are better looked up in the
documentation.
---
 Completion/Unix/Command/_perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Completion/Unix/Command/_perl b/Completion/Unix/Command/_perl
index 1631560ce774..ad0c7c553d4c 100644
--- a/Completion/Unix/Command/_perl
+++ b/Completion/Unix/Command/_perl
@@ -7,7 +7,7 @@ _perl () {
     '-0-[input record separator ($/)]:: :_perl_input_seps' \
     '-a[autosplit mode with -n or -p (splits $_ into @F)]' \
     '-C-[control some unicode features]: :_perl_unicode_flags' \
-    "-c[check syntax only (runs BEGIN and END blocks)]" \
+    "-c[check syntax only]" \
     '(   -dt -d: -dt:)-d[run scripts under debugger]' \
     '(-d     -d: -dt:)-dt[run scripts under debugger (debugged code uses threads)]' \
     '(-d -dt     -dt:)-d\:-[run under control of a debugging/tracing module]:debugging/tracing module:_perl_modules --strip-prefix --perl-hierarchy=Devel' \

base-commit: 8cea0544ba06cf6a949d971cf5aa1e26d2483405
-- 
2.54.0





Messages sorted by: Reverse Date, Date, Thread, Author