https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91621
Bug ID: 91621
Summary: libgo/mksysinfo.sh: please avoid test ==
Product: gcc
Version: 9.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
Assignee: ian at airs dot com
Reporter: harald at gigawatt dot nl
CC: cmang at google dot com
Target Milestone: ---
r269424 introduced in libgo/mksysinfo.sh:
if test "$statfs" == ""; then
test == is non-POSIX and not supported in all shells. In my GCC 9.2.0 build
log, I see
/h/gcc-9.2.0/libgo/mksysinfo.sh: 1130: test: type _statfs64 struct { f_type
int64; f_bsize int64; f_blocks uint64; f_bfree uint64; f_bavail uint64; f_files
uint64; f_ffree uint64; f_fsid ___fsid_t; f_namelen int64; f_frsize int64;
f_flags int64; f_spare [3+1]int64; }: unexpected operator
Can this please be changed to use = rather than == ?