Hello,

Revision 1.9 of tree.c (from 1999) added the disabled code and it
is still disabled. Would it be better to remove it?

- Michael


Index: tree.c
===================================================================
RCS file: /cvs/src/bin/ksh/tree.c,v
retrieving revision 1.30
diff -u -p -u -r1.30 tree.c
--- tree.c      6 Jan 2018 16:28:58 -0000       1.30
+++ tree.c      11 Jan 2018 07:16:55 -0000
@@ -47,25 +47,8 @@ ptree(struct op *t, int indent, struct s
                        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;

Reply via email to