file path with whitespaces
I have a file Test.curry
in a directory containing a whitespace (here: Test 123
); the file looks as follows.
test = 1 + 2
I can load the file into the pakcs-REPL, but when I what to evaluate test
, I get an error.
sad@siran:~/Test 123$ pwd
/net/medoc/home/sad/Test 123
sad@siran:~/Test 123$ /opt/pakcs/pakcs-2.0.0/bin/pakcs :l Test.curry
[1 of 2] Skipping Prelude ( /net/medoc/home/pakcs/amd64/pakcs-2.0.0/lib/Prelude.curry, /net/medoc/home/pakcs/amd64/pakcs-2.0.0/lib/.curry/Prelude.fcy )
[2 of 2] Skipping Test ( Test.curry, .curry/Test.fcy )
______ __ _ _ ______ _______
| __ | / \ | | / / | ____| | _____| Portland Aachen Kiel
| | | | / /\ \ | |_/ / | | | |_____ Curry System
| |__| | / /__\ \ | _ | | | |_____ |
| ____| / ______ \ | | \ \ | |____ _____| | Version 2.0.0 (4)
|_| /_/ \_\ |_| \_\ |______| |_______|
***WITH TYPECLASSES***
Curry2Prolog(sicstus 4.3) Compiler Environment (Version of 2016-12-16)
(RWTH Aachen, CAU Kiel, Portland State University)
Type ":h" for help (contact: pakcs@curry-language.org)
Test> test
Error:
Missing file "123"
ERROR occurred during parsing!
Test>
Since the error message was quite generic, it took me some time to realise what the actual problem is. The code I tried to run with pakcs was initially developed with kics2, where everything works just fine.
Did I miss a memo, where such file or directory names are explicitly prohibited or am I just the only one using whitespaces in file names?