if (testit (&ts))
++fail;
+
+ ts.retval = 0;
+ ts.env = pw->pw_dir;
+ ts.words = "${var#~root}x";
+ ts.flags = 0;
+ ts.wordc = 1;
+ ts.wordv[0] = "x";
+ ts.ifs = IFS;
+
+ if (testit (&ts))
+ ++fail;
}
/* "~" expands to value of $HOME when HOME is set */
if (testit (&ts))
++fail;
-
- ts.retval = 0;
- ts.env = pw->pw_dir;
- ts.words = "${var#~root}x";
- ts.flags = 0;
- ts.wordc = 1;
- ts.wordv[0] = "x";
- ts.ifs = IFS;
-
- if (testit (&ts))
- ++fail;
}
puts ("tests completed, now cleaning up");