From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH] [gdb] Add .shellcheckrc
Date: Mon, 31 Aug 2026 10:22:01 +0200 [thread overview]
Message-ID: <20260831082201.3507660-1-tdevries@suse.de> (raw)
I came across an inconsistency between shellcheck versions 0.10.0 and 0.11.0.
Version v0.11.0 disables SC2002 (Useless use of cat) by default.
Fix this inconsistency by enabling it by default in gdb/.shellcheckrc.
Add symlinks at {gdbserver,gdbsupport}/.shellcheckrc.
These symlinks will be expanded to regular files in the tarballs as produced
by src-release.sh due to using "tar -h".
---
gdb/.shellcheckrc | 3 +++
gdbserver/.shellcheckrc | 1 +
gdbsupport/.shellcheckrc | 1 +
3 files changed, 5 insertions(+)
create mode 100644 gdb/.shellcheckrc
create mode 120000 gdbserver/.shellcheckrc
create mode 120000 gdbsupport/.shellcheckrc
diff --git a/gdb/.shellcheckrc b/gdb/.shellcheckrc
new file mode 100644
index 00000000000..91b66edaf7a
--- /dev/null
+++ b/gdb/.shellcheckrc
@@ -0,0 +1,3 @@
+# SC2002 was disabled by default in 0.11.0. Turn it on for
+# compatibility with 0.10.0.
+enable=useless-use-of-cat
diff --git a/gdbserver/.shellcheckrc b/gdbserver/.shellcheckrc
new file mode 120000
index 00000000000..2a49a004d21
--- /dev/null
+++ b/gdbserver/.shellcheckrc
@@ -0,0 +1 @@
+../gdb/.shellcheckrc
\ No newline at end of file
diff --git a/gdbsupport/.shellcheckrc b/gdbsupport/.shellcheckrc
new file mode 120000
index 00000000000..2a49a004d21
--- /dev/null
+++ b/gdbsupport/.shellcheckrc
@@ -0,0 +1 @@
+../gdb/.shellcheckrc
\ No newline at end of file
base-commit: bcdc54fb7a34a312777fa814e065b2cc01424e0a
--
2.51.0
next reply other threads:[~2026-08-31 8:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 8:22 Tom de Vries [this message]
2026-08-31 20:05 ` Simon Marchi
2026-08-31 23:04 ` Tom de Vries
2026-09-01 16:25 ` Tom Tromey
2026-09-01 16:27 ` Tom de Vries
2026-09-01 21:37 ` Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260831082201.3507660-1-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox