Menu

#305 Can't Add directory the name of which begins with "-"

open
nobody
None
5
2012-12-07
2004-12-02
Igor Jar
No

I'm using 4.12 beta on XP.
When I select a directory the name of which begins with
"-" (hyphen) e. g. : -mydir and clilck on Add button,
the following message appears:

"Incorrect command line"

and the compression does not start.

Discussion

  • my space

    my space - 2004-12-03

    Logged In: YES
    user_id=336051

    Same problem with 7za

    echo "file" > -file

    "7za a file.7z -file" raises an error.

    On Unix, the flag "--" indicates the end of options.
    So add the "--" flag,
    and "7za a -- -file.7z -file" should work.

     
  • Igor Pavlov

    Igor Pavlov - 2004-12-04

    Logged In: YES
    user_id=65083

    Yes, I've fixed it that way.

     
  • WonkoTheSane

    WonkoTheSane - 2004-12-22

    Logged In: YES
    user_id=1183331

    Was going to submit another bug, but could be related. I'm
    new to Sourceforge + 7-zip.

    Using 3.13 under XP, I can't decompress from an archive
    whose name begins with dash "-". If I prefix the file name
    with double-dash "--" for end-of-options, will it work?

    7za e -- -file-name.zip file-to-extract.txt

    Thanks...

     
  • Igor Pavlov

    Igor Pavlov - 2004-12-23

    Logged In: YES
    user_id=65083

    use 4.13 beta

     
  • Plasticdoc

    Plasticdoc - 2005-01-05

    Logged In: YES
    user_id=927194

    Even in 4.13beta the problem still persists.

    Try to zip a file named -test.txt or any other file with a
    "-" as the first character in its name.

     

Log in to post a comment.

Auth0 Logo