]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: silence shellcheck warning SC2162 (use read -r) in gdbarch.sh
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Apr 2020 00:35:35 +0000 (20:35 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Apr 2020 00:35:36 +0000 (20:35 -0400)
commitffc2844e9672ce4b2d9d2a4f6f676a46f64f4d09
treee60721d1762d751f3ee27f24e78b4ee3f8006b0b
parent1207375d768ae2b901c3bea6543b610c461160dd
gdb: silence shellcheck warning SC2162 (use read -r) in gdbarch.sh

shellcheck reports:

    In gdbarch.sh line 53:
        while IFS='' read line
                     ^--^ SC2162: read without -r will mangle backslashes.

See the rationale at [1].  In our case, we actually want the backslashes
to be interpreted and removed.  Silence the warning using a directive.

[1] https://github.com/koalaman/shellcheck/wiki/SC2162

gdb/ChangeLog:

* gdbarch.sh (do_read): Add shellcheck disable directive for
warning SC2162.
gdb/ChangeLog
gdb/gdbarch.sh