summaryrefslogtreecommitdiff
path: root/bin/ksh/tree.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-07-14 13:37:25 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-07-14 13:37:25 +0000
commitb1e130a5dfda09ae8a7ebe9ef8b2b31a7ea0072d (patch)
tree50a19d3ae6026d39eef62c7403512f3944b5de49 /bin/ksh/tree.c
parent9f95e00383dedac23c9855efa31e7556dd79de4c (diff)
pdksh-5.2.14
Diffstat (limited to 'bin/ksh/tree.c')
-rw-r--r--bin/ksh/tree.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/bin/ksh/tree.c b/bin/ksh/tree.c
index 24539adc754..bf8e879ec17 100644
--- a/bin/ksh/tree.c
+++ b/bin/ksh/tree.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tree.c,v 1.8 1999/06/15 01:18:36 millert Exp $ */
+/* $OpenBSD: tree.c,v 1.9 1999/07/14 13:37:24 millert Exp $ */
/*
* command tree climbing
@@ -48,8 +48,25 @@ ptree(t, indent, shf)
fptreef(shf, indent, "#no-args# ");
break;
case TEXEC:
+#if 0 /* ?not useful - can't be called? */
+ /* Print original vars */
+ if (t->left->vars)
+ for (w = t->left->vars; *w != NULL; )
+ fptreef(shf, indent, "%S ", *w++);
+ else
+ fptreef(shf, indent, "#no-vars# ");
+ /* Print expanded vars */
+ if (t->args)
+ for (w = t->args; *w != NULL; )
+ fptreef(shf, indent, "%s ", *w++);
+ else
+ fptreef(shf, indent, "#no-args# ");
+ /* Print original io */
+ t = t->left;
+#else
t = t->left;
goto Chain;
+#endif
case TPAREN:
fptreef(shf, indent + 2, "( %T) ", t->left);
break;