buf.writelines(["# " + line + os.linesep for line in comments])
# bash does not have the concept of NULL
if value is not None:
- buf.write("$" + id + "=" + value + os.linesep)
+ buf.write("$" + id.lower() + "=" + value + os.linesep)
return buf.getvalue()