TEA (tclconfig) Source Code

View Ticket
Login
2024-08-21
08:55 Closed ticket [14f0d2c955]: Incorrect usage of test in [2a8174cc0c] and [381985d331] plus 5 other changes artifact: 95dc7ba4a4 user: jan.nijtmans
08:55 Ticket [14f0d2c955]: 3 changes artifact: 11221040de user: jan.nijtmans
2024-08-16
10:46
Fix [14f0d2c9558caf67]: Incorrect usage of test in [2a8174cc0c] and [381985d331] check-in: 37ba9ebbc5 user: jan.nijtmans tags: trunk, main
10:28 Ticket [14f0d2c955] Incorrect usage of test in [2a8174cc0c] and [381985d331] status still Open with 4 other changes artifact: c19e1ed838 user: jan.nijtmans
08:30 New ticket [14f0d2c955]. artifact: 9a6d4441c2 user: dmcooke

Ticket UUID: 14f0d2c9558caf6701e4a1e35dbe49a048b04638
Title: Incorrect usage of test in [2a8174cc0c] and [381985d331]
Type: Bug Version: 9.0b3
Submitter: dmcooke Created on: 2024-08-16 08:30:47
Subsystem: 85. tclconfig Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2024-08-21 08:55:48
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2024-08-21 08:55:48
Description:
Checkins [2a8174cc0c] and [381985d331] modify some lines in tcl.m4 from

    if test "${TCL_MAJOR_VERSION}" -gt 8 ; then

to

    if test "${TCL_MAJOR_VERSION}" -gt 8 -a x"${with_tcl8}" == x; then

However, in POSIX, "==" is not a valid operator for test -- it should be "=".

Using "==" works in bash and zsh, but does not work in dash, which is stricter about POSIX conformance.

When using dash, the command will fail with 'unexpected operator'.
User Comments: jan.nijtmans added on 2024-08-21 08:55:36:

Fixed [37ba9ebbc528ccd5|here]. Thanks for the report!


jan.nijtmans added on 2024-08-16 10:28:46:

Thanks! I'll change that