coreutils: rewrite for loop with foreach
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 1 Apr 2018 15:39:04 +0000 (17:39 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 1 Apr 2018 20:49:57 +0000 (22:49 +0200)
commit225c8aaf27af908ce8a9ef5fb3fde4eb9d0cdc94
tree2b389572a18bf49ec8b5bc895a2f5097d425fc45
parentb3a5ab4c7aeebee21370655e82be5aeeaa84cf28
coreutils: rewrite for loop with foreach

This brings up error checking at each iteration of the loop for free,
which removes the need for "|| exit 1".

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/coreutils/coreutils.mk