Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0129/2

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Make tbl read stdin if only flags are given.
 [rsc] --rw-rw-r-- M 1487869 glenda sys 1554 Jan 29 11:17 sys/src/cmd/tbl/t1.c
	/n/sourcesdump/2006/0129/plan9/sys/src/cmd/tbl/t1.c:43,52 - 
	/n/sourcesdump/2006/0130/plan9/sys/src/cmd/tbl/t1.c:43,49
	  	sargv = argv;
	  	sargc--; 
	  	sargv++;
	- 	if (sargc > 0) {
	- 		if(swapin() == 0)
	- 			error("flags but no input files");
	- 	} else {
	+ 	if (sargc == 0 || swapin() == 0) {
	  		tabin = (Biobuf*)getcore(sizeof(Biobuf), 1);
	  		Binit(tabin, 0, OREAD);
	  	}


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].