branch: elpa/flycheck
commit a11ec258ab158100cbe5942bfdb36920af114391
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Fix awk-gawk checker passing spurious quotes to gawk
    
    Flycheck uses `start-process` which passes arguments directly to the
    executable without shell interpretation. The single quotes in the
    `--source` argument were being passed literally to gawk, causing
    invalid awk syntax errors.
    
    Fixes #2036
---
 CHANGES.rst | 1 +
 flycheck.el | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES.rst b/CHANGES.rst
index 3e7b612836..e247dc35eb 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -16,6 +16,7 @@ Bugs fixed
 -----------
 
 - [#2086]: Fix the name of the PyMarkdown config.
+- [#2036]: Fix ``awk-gawk`` checker passing spurious quotes to ``gawk 
--source``.
 
 35.0 (2025-04-23)
 ======================
diff --git a/flycheck.el b/flycheck.el
index a4ff4a23fd..ccadbb121a 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -7657,7 +7657,7 @@ See URL `https://asciidoctor.org'."
   "GNU awk's built-in --lint checker."
   :command ("gawk"
             ;; Avoid code execution.  See https://github.com/w0rp/ale/pull/1411
-            "--source" "'BEGIN{exit} END{exit 1}'"
+            "--source" "BEGIN{exit} END{exit 1}"
             "-f" source
             "--lint"
             "/dev/null")

Reply via email to