Bug #3474

tar should support -C on extract

Added by Joshua Clulow almost 5 years ago. Updated almost 5 years ago.

Status:ResolvedStart date:2013-01-17
Priority:NormalDue date:
Assignee:Joshua Clulow% Done:

100%

Category:cmd - userland programs
Target version:-
Difficulty:Bite-size Tags:

Description

Currently our tar supports a -C on creation and a few other operations, but does not support -C on extract like GNU and OS X tar do. The desired behaviour is for -C to chdir(2) to the nominated directory after opening the archive, but before extracting files.

Use cases include: Richard Lowe.

NB: This RFE mirrors Joyent's OS-1626.

History

#2 Updated by Igor Pashev almost 5 years ago

GNU tar allows multiple -C and uses the lastest one.

#3 Updated by Robert Mustacchi almost 5 years ago

  • % Done changed from 90 to 100
  • Status changed from New to Resolved

Resolved in c92bf99ee60c0b1fe1289fef2b4034126c7867a5.

Also available in: Atom