Hi GNU tar team,

 

I'm using GNU tar 1.15.91 on SunOS and the command below fails with
Segmentation fault even before check for file existence:

tar --transform='s,^\(.*\)@@.*/\(.*\)@@.*/\(.*\)$,\3/\1/\2,'
--transform='s,^\(.*\)@@.*/\(.*\)$,\2/\1,' -cf archive.tar
file@@/branch/version

 

I've tried using one transform argument with semicolon but it fails with
"Unknown flag in transform expression":

--transform='s,^\(.*\)@@.*/\(.*\)@@.*/\(.*\)$,\3/\1/\2,;s,^\(.*\)@@.*/\(.*\)
$,\2/\1,'

 

Probably I need to explain why I need that. I use the tar transform feature
to pack specific file versions under clearcase versioning system removing
most of version info. It worked fine until I tried supporting several
transformations. Basically a clearcase expanded filename can be:

path/file@@/branch/version - simple version

path@@/dir_branch/dir_version/file@@/branch/version - with directory version
specificator

 

I'd appreciate if someone advise a workaround I could use.

 

Thanks,

Konstantin

 

Reply via email to