Re: null byte list= terminator patch
Joerg Schilling <[email protected]>
| Newsgroups | gmane.comp.archivers.star.user |
|---|---|
| Message-ID | <42BC0140.nailKI811IZT7@burner> |
Bjoern Jacke <[email protected]> wrote: > Hi Joerg, > > here is a patch for allowing the name terminator of "list=" to be null, so that > it's possible to push all kinds of strange filenames into list= (including > nasty \n in filenames etc.). > > With certain "find" implementations it would be possible to do things like > > find /dirctory_with_strange_filenames -print0 | star cvf archve.tar list=- -null > > Can you please take this patch into the upstream star ? I am not sure if this is the right way to go. The nonstandard -print0 option from GNU tar has been discussed a while ago on the POSIX mailing list and it was rejected because it would cause a need for modifying a unknown number of "other" programs too. As a result, POSIX did agree on using the way that has been used by SVr4 since 1990 find . -exec cmd {} + Your request looks like exacly a request that POSIX did like to avoid. Please note that star-1.6 will include libfind and you then will no longer need find at all (at least in conjunction with tar). Do you have any real world demand where you cannot use star as it is? Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily