Revision dcbde7897a0b4c64b422f2bebd3c10b9a38e0972 authored by Ken Thompson on 13 May 1979, 22:37:21 UTC, committed by Ken Thompson on 13 May 1979, 22:37:21 UTC
Work on file usr/sys/h/pk.p

Co-Authored-By: Dennis Ritchie <dmr@research.uucp>
Synthesized-from: v7
1 parent 6664aa8
Raw File
struct
trap "rm -f /tmp/struct*$$" 0 1 2 3 13 15
files=no
for i
do
	case $i in
	-*)	;;
	*)	files=yes
	esac
done

case $files in
yes)
	/usr/lib/struct/structure $* >/tmp/struct$$
	;;
no)
	cat >/tmp/structin$$
	/usr/lib/struct/structure /tmp/structin$$ $* >/tmp/struct$$
esac &&
	/usr/lib/struct/beautify</tmp/struct$$
back to top