On Tue, Jun 06 2017, Zhilong Liu wrote: > This helps with piping to a paper. It might help you, but it is an API change and could cause problems for others. Some programs, such as "mount -V", send version info to stdout. Others, like "gcc -v", send it to stderr. There is no uniform standard, it is best to leave the behavior unchanged. If you need to capture the output use mdadm -V |& ... or mdadm -V 2>&1 or similar. NeilBrtown > > Signed-off-by: Zhilong Liu <zlliu@xxxxxxxx> > --- > mdadm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mdadm.c b/mdadm.c > index 70b16f2..0f736d7 100644 > --- a/mdadm.c > +++ b/mdadm.c > @@ -139,7 +139,7 @@ int main(int argc, char *argv[]) > continue; > > case 'V': > - fputs(Version, stderr); > + fputs(Version, stdout); > exit(0); > > case 'v': c.verbose++; > -- > 2.6.6 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html
Attachment:
signature.asc
Description: PGP signature