Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] [gdb] Add .shellcheckrc
@ 2026-08-31  8:22 Tom de Vries
  2026-08-31 20:05 ` Simon Marchi
  2026-09-01 16:25 ` Tom Tromey
  0 siblings, 2 replies; 6+ messages in thread
From: Tom de Vries @ 2026-08-31  8:22 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-01 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-31  8:22 [PATCH] [gdb] Add .shellcheckrc Tom de Vries
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox