Bug 4393

Summary: xargs + bzcat does not work
Product: Busybox Reporter: colchaodemola
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description colchaodemola 2011-10-28 21:44:07 UTC
# ls -la /tmp/*.bz2
-rw-r--r--    1 root     root            39 Oct 28 18:30 /tmp/a.bz2
-rw-r--r--    1 root     root            39 Oct 28 18:30 /tmp/b.bz2
# 
# 
# bzcat  /tmp/*.bz2
b
a
# 
# ls -rt /tmp/*.bz2 | xargs bzcat    ********************
a
bzcat: short write
bzcat: close failed: Bad file descriptor
# 
# ls -rt /tmp/*.bz2 | xargs echo bzcat
#
bzcat /tmp/b.bz2 /tmp/a.bz2
# ls -rt /tmp/*.bz2 | xargs echo bzcat | sh
a
b
# 


why the marked (***)command does not work ? in gnu equivalents it works just fine.