[PB6.20-beta2] User-PureLibrary filenames are written in lowercase

Linux specific forum
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 559
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

[PB6.20-beta2] User-PureLibrary filenames are written in lowercase

Post by Sicro »

Is it intentional that the User-PureLibrary file is created with a lowercase name on Linux? On Windows, the filename is as specified with the “--output” parameter.
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: [PB6.20-beta2] User-PureLibrary filenames are written in lowercase

Post by mk-soft »

Makes sense, because Linux file system is case sensitive
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [PB6.20-beta2] User-PureLibrary filenames are written in lowercase

Post by Fred »

Yes it's done like that for official libs to reduce errors
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 559
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: [PB6.20-beta2] User-PureLibrary filenames are written in lowercase

Post by Sicro »

Yes, almost all Linux distributions use the default setting for the file system, which is case-sensitive.

Yes, it makes sense.

I encountered this behavior when I created a PureLibrary:

Code: Select all

$ pbcompilerc Test.pb --purelibrary --output TestLib
PureBasic 6.20 Beta 2 - C Backend (Linux - x64)
Loading external modules...
Starting compilation...
67 lines processed.
Creating threaded version of the PureLibrary...
Starting compilation...
67 lines processed.
PureLibrary successfully created: "/home/alexander/purebasic/purelibraries/userlibraries/TestLib"
Later, I wanted to delete the PureLibrary again:

Code: Select all

$ rm /home/alexander/purebasic/purelibraries/userlibraries/TestLib 
rm: cannot remove '/home/alexander/purebasic/purelibraries/userlibraries/TestLib': No such file or directory

Code: Select all

$ ls /home/alexander/purebasic/purelibraries/userlibraries/
README testlib
I created a bug report to better track the bug.
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
Post Reply