Tk Library Source Code

View Ticket
Login
Ticket UUID: 1511333
Title: tar: error in option handling
Type: Bug Version: None
Submitter: exgerhardr Created on: 2006-06-23 14:19:28
Subsystem: tar Assigned To: afaupell
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-06-30 06:20:51
Resolution: None Closed By: afaupell
    Closed on: 2006-06-29 23:20:51
Description:
tar package does not work if using options due to a bug
in proc ::tar::parseOpts.
e.g. ::tar::untar archive.tar -file somefile

The following diff does show this:
+++++++++++++++++++++++++++++++++++
26c26
<             set flags [lrange $opts [expr {$i + 1}]
[expr {$i + $flags($name)}]]
---
>             set $name [lrange $opts [expr {$i + 1}]
[expr {$i + $flags($name)}]]
+++++++++++++++++++++++++++++++++++
Or shorter: replace 'flags' by '$name' in line 26.

I think this was present already in 1.7

BTW: there's a wonderfull cmdline package, why not
using this?

Bye,
Gerhard Reithofer
User Comments: afaupell added on 2006-06-30 06:20:51:
Logged In: YES 
user_id=812825

fixed

exgerhardr added on 2006-06-23 21:19:29:

File Added - 182733: tar-0.1.patch

Attachments: