On Thu, 17 Sep 2026 12:03:22 GMT, Pavel Rappo <[email protected]> wrote:

> A minor, drive-by observation: `-C` does not say that if used in extract mode 
> and the specified directory does not exist, it will be created.

Although related, the following bug is separate from the one that this PR tries 
to address. If both `-` and `--` options are used and the `-` uses the "mixed" 
syntax, the resulting command might have an unexpected effect.

For example, this extracts the jar file into the current directory:

  *      jar -xvf classes.jar --dir foo

But either of these extracts it into the `foo` directory as expected:

  *      jar --dir foo -x -v -f classes.jar
  *      jar -x -v -f classes.jar --dir foo
  *      jar -f classes.jar --dir foo -x -v

-------------

PR Comment: https://git.openjdk.org/jdk/pull/32439#issuecomment-5714916718

Reply via email to