|
From: | anonymous |
Subject: | [bug #61009] xargs need option to immediately stop on command fail |
Date: | Thu, 5 Aug 2021 06:17:44 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #3, bug #61009 (project findutils): > This is my guess because the shown use of find/xargs > is quite excessive (one cp(1) invocation per file) and unsafe (unusual filenames > would break the construct). About unsafe filenames. If you talk about this: find . -type f | xargs -IX -n1 sh -c "cp -f X $IMGDIR_DST/X || exit 255" I understand how unsafe filenames can cause a wrond behaviour. But here(if -F/-S would be implemented): find . -type f | xargs -F -IX -n1 cp -f X $IMGDIR_DST/X I can't find any problem with unsafe filenames. Am i wrong? _______________________________________________________ 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] |