summaryrefslogtreecommitdiff
path: root/bin/ksh
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2015-10-06 21:35:17 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2015-10-06 21:35:17 +0000
commit260329b50f23a0e4e1fcdde928829a1c8705875e (patch)
tree4bc5eca832550bb2c90f81aa2da37467abe5541a /bin/ksh
parentbc28234e324c435f724a2100833af9d8f46309f6 (diff)
Remove an old and broken test snippet, from Michael McConville. ok millert
Diffstat (limited to 'bin/ksh')
-rw-r--r--bin/ksh/path.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/bin/ksh/path.c b/bin/ksh/path.c
index 4ea58d93997..f48f8d47974 100644
--- a/bin/ksh/path.c
+++ b/bin/ksh/path.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: path.c,v 1.14 2015/09/15 18:15:05 tedu Exp $ */
+/* $OpenBSD: path.c,v 1.15 2015/10/06 21:35:16 nicm Exp $ */
#include "sh.h"
#include <sys/stat.h>
@@ -259,27 +259,3 @@ do_phys_path(XString *xsp, char *xp, const char *path)
}
return xp;
}
-
-#ifdef TEST
-
-int
-main(void)
-{
- int rv;
- char *cp, cdpath[256], pwd[256], file[256], result[256];
-
- printf("enter CDPATH: "); gets(cdpath);
- printf("enter PWD: "); gets(pwd);
- while (1) {
- if (printf("Enter file: "), gets(file) == 0)
- return 0;
- cp = cdpath;
- do {
- rv = make_path(pwd, file, &cp, result, sizeof(result));
- printf("make_path returns (%d), \"%s\" ", rv, result);
- simplify_path(result);
- printf("(simpifies to \"%s\")\n", result);
- } while (cp);
- }
-}
-#endif /* TEST */