Skip to content

save_image fails if target image name contains a dash #195

Open
@kenbowen

Description

@kenbowen

?- save_image(sitest, [libload(Bool)]).

succeeds, making sitest, sitest.pst.

But

?- save_image(si-test, [libload(Bool)]).

goes into an infinite failure bounce at the end of library loading:

…..
Loading /Users/ken/ALS/GitHub/ALSProlog/unix/darwin/als-prolog/alsdir/library/xlists
...loaded
...loaded
...loaded
...loaded
Loading /Users/ken/ALS/GitHub/ALSProlog/unix/darwin/als-prolog/alsdir/library/xlists
…..

Executing ?-toggle_mod_show(builtins), and tracing shows shows that the cause of the failure is this failure of pbi_copy_file:

(1) 1 call: builtins:
pbi_copy_file(
/Users/ken/ALS/HH/ALSProlog_3.5.0-38-gc7934fa1/unix/darwin/als-prolog/alspro,
si-test)?
(1) 1 fail: builtins:
pbi_copy_file(
/Users/ken/ALS/HHH/ALSProlog_3.5.0-38-gc7934fa1/unix/darwin/als-prolog/alspro,
si-test)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions