Bug #3474

tar should support -C on extract

Added by Joshua Clulow about 6 years ago. Updated about 6 years ago.

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


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


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.


#2 Updated by Igor Pashev about 6 years ago

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

#3 Updated by Robert Mustacchi about 6 years ago

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

Resolved in c92bf99ee60c0b1fe1289fef2b4034126c7867a5.

Also available in: Atom