Enumeration e = htVariables.keys();
String[] list = new String[htVariables.size()];
while (e.hasMoreElements()) {
String key = (String) e.nextElement();
ScriptVariable var = (ScriptVariable) htVariables.get(key);
if (withSites || (!key.startsWith("@site_") && !key.startsWith("site_")))
list[n++] = key
+ (key.charAt(0) == '@' ? " " + ScriptVariable.sValue(var) : " = "
+ varClip(key, var.escape(), nMax));
}
Arrays.sort(list, 0, n);
for (int i = 0; i < n; i++)
if (list[i] != null)
appendCmd(sb, list[i]);