On 10/27/2010 05:11 PM, Eric Blake wrote:
> On the dash mailing list, it was suggested that you try using exec
> rather than redirection to close the fds.  That is:
> 
> ( (exec 3<&- 4<&- 5<&- 6<&- 7<&- 8<&- 9<&- && ulimit -n &&

ulimit -n 10

>    tar -cf archive3.tar a &&
>    tar -xf archive3.tar -C dest3 a
>   ) &&
>   diff -r a dest3/a >/dev/null 2>&1
> ) || { diff -r a dest3/a; exit 1; }
> )

http://thread.gmane.org/gmane.comp.shells.dash/414/focus=415

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to