Hi,
When attempting to store a dataset using relative paths, the filenames are being ignored, and the created files are instead named ".bin" and ".idx". This issue does not occur when providing absolute paths for storage. This behavior is unexpected and inconsistent, leading to an inability to open the stored dataset subsequently.
When storing a dataset with a relative path, the specified filename should be respected, and the files should be named accordingly (e.g., "data.bin" and "data.idx").
Files are named ".bin" and ".idx" when stored using a relative path, ignoring the provided filename. This does not occur when an absolute path is used.
Current git-version using Ubuntu 22.04.
set verbose off
set workdir "/home/artur/tmp/gretl_db" # set some path
open australia.gdt --quiet
string filename = "./data.bin"
store "@filename" --overwrite # Error: names of files: ".bin" and ".idx"
open "@filename" # Fails as the filenames were not correctly stored
As a temporary workaround, users can specify absolute paths when storing datasets to ensure correct filename usage.
Best
Artur
Leave off the leading "./" and this works OK.
Bad behavior when the specified filename starts with '.' is now fixed in git.