nicer nicear: suppress "modifier ignored" warning

If GUN ar is configured for deterministic mode by default, then

  ar: `u' modifier ignored since `D' is the default (see `U')

prints. Suppress that to avoid stderr output.
This commit is contained in:
Matthew Flatt 2019-06-21 09:49:11 -06:00
parent c1bb341d2e
commit 6e70d8ec1d

View File

@ -1,3 +1,3 @@
#!/bin/sh
$* 2>&1 | awk '/^ar: creating / || /^[ar] \-/ { print } ! ( /ar: creating / || /^[ar] \-/ ) { print | "cat 1>&2" }'
$* 2>&1 | awk '/^ar: creating / || /^[ar] \-/ || / modifier ignored / { print } ! ( /ar: creating / || /^[ar] \-/ || / modifier ignored / ) { print | "cat 1>&2" }'