Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simark@simark.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2 2/3] [gdb] Use shfmt on regformats/regdat.sh
Date: Wed, 2 Sep 2026 15:21:08 +0200	[thread overview]
Message-ID: <9b85138d-76fd-4f29-8340-cb58d572386a@suse.de> (raw)
In-Reply-To: <8ff5061d-082c-4a00-90e4-31857e655027@simark.ca>

On 8/31/26 10:13 PM, Simon Marchi wrote:
> It would be nice to have a script to easily do this on all our shell
> scripts, which we could also run in the CI (like we run black to verify
> the Python code formatting).
> 

I've submitted an RFC ( 
https://sourceware.org/pipermail/gdb-patches/2026-September/229953.html ).

>> ...
>> followed by emacs whitespace-cleanup (because shfmt doesn't know about mixed
>> tab/spaces indentation).
> I guess said script would need to do this too (I wonder if it can be
> done with sed, replacing leading groups of 8 spaces with a tab).

I found a tool unexpand, to I've used that.

Thanks,
- Tom

  reply	other threads:[~2026-09-02 13:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-30 19:53 [PATCH v2 0/3] [gdb] Reformat regformats/regdat.sh Tom de Vries
2026-08-30 19:53 ` [PATCH v2 1/3] [gdb] Re-indent regformats/regdat.sh Tom de Vries
2026-08-31 20:09   ` Simon Marchi
2026-09-01  9:21     ` Tom de Vries
2026-08-30 19:53 ` [PATCH v2 2/3] [gdb] Use shfmt on regformats/regdat.sh Tom de Vries
2026-08-31 20:13   ` Simon Marchi
2026-09-02 13:21     ` Tom de Vries [this message]
2026-08-30 19:53 ` [PATCH v2 3/3] [gdb] Use shfmt --simplify " Tom de Vries
2026-08-31 20:14   ` Simon Marchi

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=9b85138d-76fd-4f29-8340-cb58d572386a@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /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