frogiter <file> <cmd> iterates through the results in <file> and pipes the result's output into <cmd>. However <cmd> has no way to obtain other information about the result, such as errcode, time, stderr, and which arg was used.
A good solution would be to pass $TIME, $MAPARG, etc. to <cmd> through its environment.
frogiter <file> <cmd>
iterates through the results in<file>
and pipes the result's output into<cmd>
. However<cmd>
has no way to obtain other information about the result, such as errcode, time, stderr, and which arg was used.A good solution would be to pass
$TIME
,$MAPARG
, etc. to<cmd>
through its environment.