Tk Source Code

View Ticket
Login
Ticket UUID: 3476090
Title: -help does not work in tk 8.5.11 on MacOs
Type: Bug Version: None
Submitter: Created on: 2012-01-19 15:35:04
Subsystem: 73. Argv Parsing Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Open Last Modified: 2012-01-19 22:35:09
Resolution: None Closed By:
    Closed on:
Description:
When one uses the "-help" option win tk 8.5.11 on MacOs, the program crashes with a Segmentation Fault  11 

On Linux with Tcl 8.4 it works fine.

An example is included:

On Mac, tk 8.5.11:

$.> ./a.out -help
Segmentation fault: 11


On Linux, tk 8.4:

$.> ./a.out -help
Command-specific options:
 -myoption1: Explain myoption1
 -myint2:    Explain myint2
Generic options for all commands:
 -help:      Print summary of command-line options and abort
User Comments: added on 2012-01-19 22:35:09:

File Added - 433483: tk_argv_test.c

Attachments: