[BusyBox] Is this a uclibc problem or a busybox problem?

Mike Frysinger vapier at gentoo.org
Sun Aug 28 05:54:26 UTC 2005


On Saturday 27 August 2005 10:22 pm, Rob Landley wrote:
> On Saturday 27 August 2005 15:25, Mike Frysinger wrote:
> > > B) it notices when tar dies and fails the install correctly.
> >
> > that is tricky ... in order to do this reliably, we'd have to break up
> > the tar into two commands and use a tempfile between them ... detecting
> > failure in earlier piped programs is pretty non-portable :/
> > -mike
>
> (tar c || touch unhappy) | tar x

works everytime ... complain it cant be done simply and someone proves you 
wrong :)

how about
(tar cf- .... && touch .this-file-makes-sure-tar-worked) | tar x
rm .this-file-makes-sure-tar-worked
-mike



More information about the busybox mailing list