4.3BSD/usr/contrib/spms/src/lib/libspms/test/optpath.a

!<arch>
Ioptpath        418696342   968   27    100644  508       `

/
/..
/.
./
./..
../
../.
//
//.
//..
.//
..//
../..
../../..
../../../..
../../../../
a/b/..
a/b/../../..
a/b//..
a/b//../../..
a/b/./..
a/b/./../../..
a/b/../
a/b/../../../c/d/../../..
a/b/../../../c/d/../../../
a/b/../../../c/d/../../../e
a/b/../../../c/d/../../../e/
a/b/../../../../c/d/../../../../e/
/a/b/..
/a/b/../../..
/a/b//..
/a/b//../../..
/a/b/./..
/a/b/./../../..
/a/b/../
/a/b/../../../c/d/../../..
/a/b/../../../c/d/../../../
/a/b/../../../c/d/../../../e
/a/b/../../../../c/d/../../../../e/
Ooptpath        418696342   968   27    100644  155       `

/
/
/
.
..
..
..
/
/
/
.
..
../..
../../..
../../../..
../../../..
a
..
a
..
a
..
a
../..
../..
../../e
../../e
../../../../e
/a
/
/a
/
/a
/
/a
/
/
/e
/e

Toptpath.c      418696345   968   27    100644  289       `
/*
 * optpath()
 */
#include "null.h"
#include "path.h"

main()
{
	char *gets();			/* get a line from stdin */
	char *optpath();		/* optimize pathname */
	char pathname[PATHSIZE];	/* pathname input buffer */

	while (gets(pathname) != NULL)
		printf("%s\n",optpath(pathname));
	exit(0);
}