diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-12-14 12:20:18 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-12-14 12:25:07 -0500 |
commit | 0074d5b0c064dbf6cfc7231fc5b74659d81b120e (patch) | |
tree | a09a0fb52762b50b0ddd6e21c1a0c139cd318948 /tests/common/H_samefile_symlink.out | |
parent | f21a9340cd0c615ead1954eb6b93845a4f8c0897 (diff) | |
download | bfs-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_symlink.out')
0 files changed, 0 insertions, 0 deletions