aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-cmd-exception.py
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2025-10-08 21:49:50 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2025-10-08 21:52:32 -0400
commit7b67c40b51b36aea807261018ffb7b24065d5619 (patch)
treeaee4db81d94033058afca9c9ff4278e027b40a3a /gdb/testsuite/gdb.python/py-cmd-exception.py
parent41fa0c5ed7289f6915bccd85a69a8d3286e977e6 (diff)
downloadbinutils-7b67c40b51b36aea807261018ffb7b24065d5619.zip
binutils-7b67c40b51b36aea807261018ffb7b24065d5619.tar.gz
binutils-7b67c40b51b36aea807261018ffb7b24065d5619.tar.bz2
gdb/testsuite: make gdb.tui/gdb.sh work with dash
gdb.tui/gdb.sh (used by test gdb.tui/tuiterm-2.exp) doesn't run well when /bin/sh is dash: $ bash testsuite/gdb.tui/gdb.sh foo^C $ dash testsuite/gdb.tui/gdb.sh footestsuite/gdb.tui/gdb.sh: 20: read: arg count shellcheck actually points it out: In testsuite/gdb.tui/gdb.sh line 20: read ^--^ SC3061 (warning): In POSIX sh, read without a variable is undefined. ^--^ SC2162 (info): read without -r will mangle backslashes. Fix the issue by passing the `_` dummy variable. Using that particular variable will not cause shellcheck to whine about it being unused. Also add `-r` to make it happy. Change-Id: Ida3eddbfa3473487743fc96615baf735b4773738
Diffstat (limited to 'gdb/testsuite/gdb.python/py-cmd-exception.py')
0 files changed, 0 insertions, 0 deletions