|
From: | James Youngman |
Subject: | [bug #61009] xargs need option to immediately stop on command fail |
Date: | Sat, 7 Aug 2021 08:12:20 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 |
Follow-up Comment #4, bug #61009 (project findutils): The proposed find . -type f | xargs -IX -n1 sh -c "cp -f X $IMGDIR_DST/X || exit 255" || exit 1 can be implemented more efficiently without using the hypothetical -F flag: find . -type f -exec cp -t "${IMGDIR_DST}" {} + -o -quit This approach is also less "complex and error prone" than the approach using xargs and lots of flags. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?61009> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |