Re: The xargs -r, --no-run-if-empty Option Is Ignored When a Delimiter Is Passed

2021-05-14 Thread Kurt von Laven
, Kurt El vie, 14 may 2021 a las 11:53, Bernhard Voelker () escribió: > On 5/11/21 3:58 AM, Kurt von Laven wrote: > > The following command correctly outputs nothing. > > xargs --no-run-if-empty -I str echo str <<< "" > > > > The following comma

The xargs -r, --no-run-if-empty Option Is Ignored When a Delimiter Is Passed

2021-05-11 Thread Kurt von Laven
overflow.com/a/17287097/3866835>, the following commands output nothing when the input consists only of whitespace. [[ $input = *[![:space:]]* ]] && xargs --delimiter="\n" -I str echo str <<< "$input" [[ $input = *[![:space:]]* ]] && xargs --null -I str echo str <<< "$input" Be well, Kurt von Laven