arduino-cli issue

Hi, I'm testing arduino-cli on both Windows10 and Ubuntu19. It works just fine but today I encountered a strange behaviour. Running a compile with --build-cache-path compile option works fine in Windows but in Ubuntu creates a folder named:drwxr-xr-x 3 gigi gigi  4096 feb  8 17:44 'compile'. Also, if I add the option--build-path compile, the compilation give me the following error at the end of compilationError during build: Rel: can't make /home/gigi/Documents/ArduinoPrjs/gPano/compile/core/core.a relative to compile and two folders have been created:

drwxr-xr-x 6 gigi gigi   4096 feb  8 17:49  compile/
drwxr-xr-x 2 gigi gigi   4096 feb  8 17:49 'compile'

. All this running commands from an .sh file.
\r'/. Also, if I add the option§DISCOURSE_HOISTED_CODE_2§, the compilation give me the following error at the end of compilation§DISCOURSE_HOISTED_CODE_3§` and two folders have been created:

§_DISCOURSE_HOISTED_CODE_4_§

. All this running commands from an .sh file.
\r'/


. All this running commands from an .sh file.
\r'/`. Also, if I add the option`§_DISCOURSE_HOISTED_CODE_2_§`, the compilation give me the following error at the end of compilation`§_DISCOURSE_HOISTED_CODE_3_§` and two folders have been created:

§DISCOURSE_HOISTED_CODE_4§


. All this running commands from an .sh file.

Which version of arduino-cli are you using?

Version: 0.7.2 Commit: 9c10e06

I tried with my own arduino-cli compiled from source today (docker) but nothing change

Please attach the a script that demonstrates the problem. If you click the "Reply" button, you'll see an "Attachments and other settings link that will allow you to make an attachment.

So far, I haven't been able to reproduce the problem with the cache folder name, but it might be that my command or script is different from yours.

And just to be sure, are you using "ls -p" (meaning the trailing slash on the directory names is expected)?

I haven't looked into the compilation error yet. I do remember encountering something like this a while back, but I can't recall whether I found a solution for it or not.