On 28/03/21 9:52 pm, Lance Andersen wrote:
On Mar 28, 2021, at 9:24 AM, Jaikiran Pai <jai.forums2...@gmail.com
<mailto:jai.forums2...@gmail.com>> wrote:
Now when the user explicitly specifies the new -C or --dir option
with the -P option for extract, something like:
jar -xfP foo.jar -C /tmp/hello/
Given the support of -C/-dir is new and -P is there for backwards
compatibility then I see the choices are:
* Issue an error when -P and -C/-dir are specified together with -x
* Silently ignore the -P option
* Ignore -C/-dir and the behavior is if -xfP was specified.
I am leaning towards an error given this is a new feature when -P and
-C/-dir are specified with -x
That sounds reasonable to me. I'll update the PR accordingly to take
this into account.
-Jaikiran