Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 75475
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Archive-Tar

People
Owner: BINGOS [...] cpan.org
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.82
Fixed in: (no value)



Subject: [feature request] support dash-less basic options
(GNU) tar supports - for historic reasons - dashless basic options $ tar czvf /tmp/xx.tgz foo $ tar tvf /tmp/xx.tgz Not only because one got used to that mantra in System-III era (yes, I'm showing age), it also quite often surfaces in scripts. When using "ptar" on Windows (if it doesn't have "tar"), I almost always type these options without a dash. Would be swell if ptar would accept that too.
Also seems to be a simple patch :) --8<--- --- ptar.org 2012-03-02 16:48:28.751638859 +0100 +++ ptar 2012-03-02 16:51:18.029631310 +0100 @@ -9,6 +9,11 @@ use Getopt::Std; use Archive::Tar; use Data::Dumper; +# Allow historic support for dashless bundled options +# tar cvf file.tar fo +# is valid (GNU) tar style +@ARGV && $ARGV[0] =~ m/^[DdcvzthxIC]+[fT]?$/ and + unshift @ARGV, map { "-$_" } split m// => shift @ARGV; my $opts = {}; getopts('Ddcvzthxf:ICT:', $opts) or die usage(); -->8---
Applied and new version released. Thanks.