9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] programs not using ARGBEGIN
@ 2010-05-16  0:19 erik quanstrom
  0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2010-05-16  0:19 UTC (permalink / raw)
  To: 9fans

here's a different approach.

	#!/bin/rc

	cd /$objtype/bin
	for(i in `{find})
	#	if(! ~ $i */ape/*)		# obviously
		if(test -f $i)
		if(! ~ `{file $i | sed 's/ /_/g'} *:_rc_executable_file)
		if(! grep -s ARGBEGIN `{src -n $i|sed -n 's/([^:]+):.*/\1/p'} /dev/null)
			echo $i

many of these programs have no reason to parse
(any) traditional arguments, and some have earned their
wierdness by tradition, but programs like aux/clog
should be cleaned up.  iirc, acid also has some argument
processing quirks.

- erik



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-16  0:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-16  0:19 [9fans] programs not using ARGBEGIN erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).