summaryrefslogtreecommitdiffstats
path: root/tests/common/H_samefile_broken.out
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-14 12:20:18 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-14 12:25:07 -0500
commit0074d5b0c064dbf6cfc7231fc5b74659d81b120e (patch)
treea09a0fb52762b50b0ddd6e21c1a0c139cd318948 /tests/common/H_samefile_broken.out
parentf21a9340cd0c615ead1954eb6b93845a4f8c0897 (diff)
downloadbfs-0074d5b0c064dbf6cfc7231fc5b74659d81b120e.tar.xz
tests: Fix crash when stderr is redirected
bash uses fileno(stderr) to keep track of $COLUMNS. With stderr redirected, $COLUMNS will be unset, leading to $ ./tests/tests.sh 2> >(cat) ./tests/tests.sh: line 635: COLUMNS: unbound variable Fix it by using $(tput cols) if $COLUMNS is unset, which is almost POSIX. Link: https://www.austingroupbugs.net/view.php?id=1053
Diffstat (limited to 'tests/common/H_samefile_broken.out')
0 files changed, 0 insertions, 0 deletions