shithub: riscv

Download patch

ref: a36f997368057fe298524de52310cc4e98bddba8
parent: 418131d326ab033789a25c0c5cddd5aa776e8f27
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Aug 19 12:59:17 EDT 2022

ar: print output to stdout (thanks uramekus)

it makes output easier to grep, and when redirecting to
/dev/null, all of it goes in.

--- a/sys/src/cmd/ar.c
+++ b/sys/src/cmd/ar.c
@@ -483,7 +483,7 @@
 	fd = openar(arname, ORDWR, 1);
 	if (fd < 0) {
 		if(!cflag)
-			fprint(2, "ar: creating %s\n", arname);
+			print("ar: creating %s\n", arname);
 		fd = arcreate(arname);
 	}
 	Binit(&bar, fd, OREAD);
@@ -793,7 +793,7 @@
 	rfork(RFNOTEG);
 
 	if(createflag)
-		fprint(2, "ar: creating %s\n", arname);
+		print("ar: creating %s\n", arname);
 	fd = arcreate(arname);
 
 	if(allobj)