<br><div class="gmail_quote">On Wed, Aug 3, 2011 at 2:54 PM, Thomas Jollans <span dir="ltr"><<a href="mailto:t@jollybox.de">t@jollybox.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><div class="im">On 03/08/11 23:25, Dan Stromberg wrote:<br>
> > Interesting. Of course, it's probably readily available to you. What<br>
> > *ix are you seeing that doesn't include cpio by default?<br>
><br>
> Arch Linux - the base install is quite minimal.</div></blockquote><div class="im"><br>Hmmmm...<br><br>So we're probably not talking about portability to Android... Because it's too minimal, too different?<br>
<br>
>> Which implementations of cp don't implement -R and -l?<br>
>><br>
>><br>
>> Probably most of them, except GNU and newer BSD.<br>
><br>
> Okay. While GNU libc manuals usually document how portable functions are<br>
> in detail, that's not true for the GNU coreutils manuals.<br>
<br>You don't really need it in the coreutils doc.<br><br>I'd feel very safe assuming that 98+% of all *ix's (not counting Android) either have cpio installed by default, or can easily get it via their native package manager.<br>
<br>The same isn't true of a cp with new features.<br><br>
> I don't think cpio is in GNU coreutils. Also, I think GNU cpio is a<br>
> reimplementation, not the original.<br>
<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Indeed. But cp is in the coreutils, and that was what we were talking about.<br></blockquote>
<div><br>Sorry. Maybe you should describe what you believe we -are- talking about, then? I guess I missed that.<br><br>I thought it was portability.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
As for GNU cpio, that's simply what /usr/bin/cpio, if present, is<br>
expected to be on a GNU/Linux system.<br><div class="im"></div></blockquote><div class="im"><br>Well, yes, but:<br>1) GNU/Linux is important<br>2) GNU/Linux isn't the end all and be all<br><br>(I wrote:)<br>
> cpio's been around since PWB/Unix, which sits between 6th Edition Unix<br>
> and 7th Edition. It should be in just about everything, unless a<br>
> vendor/distributor got pretty zealous about cutting duplicate utilities.<br><br>I guess this is boiling down to "A pure python solution might be better, since some folks don't like to use their package managers"<br>
<br>Also, a pure python solution should work on windows - these shell commands don't unless you have one of the many ports of *ix tools to windows installed.<br><br><br></div></div>