/hsave bugs - 23/09/03 09:37 PM
Yes I know similar problem was already reported but here's a simple code that easily reproduces it:
As you can see, a binary /hsave has difficulties saving tables that contain empty items. It results in a partially-written file.txt and an ambiguous error message. On 6.03 however it worked fine.
Also, /hsave reports a misleading error message ("insufficient parameters") when you try to save a table into an existing file. To reproduce:
What do you think should be the default behavior in this case? Appending to an existing file (if anyone finds that useful), overwriting it or just displaying an appropriate error mesage?
(OS: 98se)
Code:
//hadd -m table item | hsave -b table file.txt
As you can see, a binary /hsave has difficulties saving tables that contain empty items. It results in a partially-written file.txt and an ambiguous error message. On 6.03 however it worked fine.
Also, /hsave reports a misleading error message ("insufficient parameters") when you try to save a table into an existing file. To reproduce:
Code:
//hadd -m table a b | hsave table file.txt | hsave table file.txt
What do you think should be the default behavior in this case? Appending to an existing file (if anyone finds that useful), overwriting it or just displaying an appropriate error mesage?
(OS: 98se)