]> https://gitweb.dealii.org/ - dealii.git/commit
Remove a redundant argument to xargs. 13093/head
authorDavid Wells <drwells@email.unc.edu>
Thu, 16 Dec 2021 18:02:56 +0000 (13:02 -0500)
committerDavid Wells <drwells@email.unc.edu>
Wed, 22 Dec 2021 17:19:06 +0000 (12:19 -0500)
commitc6b16608718103cd46bdf1522e84edc3c0079c36
tree65634cb3d1bb8dc050bb29aeb038c8287722b4e7
parentd6b0a8898f5eabb4fb7de369f8bc1e1c7134d07e
Remove a redundant argument to xargs.

On GNU, '-I {}' implies '-L 1', i.e., provide one line to each invocation. Since
we are using '-0' (NUL-delimited input) we already implicitly get one item per
line, so the -n 1 is redundant (and also raises a warning).

A simple example: running

    ls --zero | xargs -0 -I {} echo 'aa {}'

prints 'aa ' followed by each item in the current directory - i.e.,
NUL-delimited input really is represented as one line per item.
contrib/utilities/indent_common.sh

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.