Re: [Help-tar] Global header contents as environment variab les of the e
From:
Dmitry Ivankov
Subject:
Re: [Help-tar] Global header contents as environment variab les of the external program called with --to-command option
Date:
Tue, 25 Feb 2014 21:45:11 +0400
>> It would be nice to have saved keyword-values as a variables in the >> environment of that <external_program> (like other stuff: TAR_MTIME, >> TAR_ATIME,...). >> Is it real? > > Yes, it is possible. Please try the attached patch (built against > current git HEAD).
Thank you, Sergey. It works for me. But there is a little issue with dots in a keyword name. Something like "ORG.project.property" saved in the global header appears as environment variable "TAR_HEADER_ORG.project.property" which is incorrect name. I believe there are also other forbidden symbols (except '.') to use in a header keyword name.