Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

Workspace content mangled when omitting "C:" from a path #570

Closed abrudz closed 10 months ago

abrudz commented 11 months ago

Describe the bug Workspace content mangled when omitting "C:" from a path.

To Reproduce Clone https://github.com/abrudz/aplcart to C:\g\aplcart

      ⎕SE.Link.Create '#.aplcart' 'C:\g\aplcart'
Linked: #.aplcart ←→ C:\g\aplcart
      ]map
#                                                                     
·   aplcart                                                           
·   ·   ~ chars class type                                            
·   ·   ∇ File Reorder ReorderFile Synonym Synonyms Test Trim allucmds
·   ·   APLcart                                                       
·   ·   ·   ~ desc syntax                                             
·   ·   ·   ∇ Help List Q Run table                                   
·   ·   index [Class]                                                 
·   ·   pub                                                           
·   ·   quiz                                                          
·   ·   task                                                          
·   ·   what                                                          

Compare:

      ⎕SE.Link.Create '#.aplcart' '\g\aplcart'
Linked: #.aplcart ←→ c:\g\aplcart
      ]map
#                                                                 
·   ~ aplcartIO aplcarthars aplcartlass aplcartype                
·   ∇ File Reorder ReorderFile Synonym Synonyms Test Trim allucmds
·   APLcart                                                       
·   ·   ~ desc syntax                                             
·   ·   ∇ Help List Q Run table                                   
·   aplcart                                                       
·   aplcartask                                                    
·   aplcarthat                                                    
·   aplcartub                                                     
·   aplcartuiz                                                    
·   index [Class]                                                 

Link 4.0.9
.NET .NET 6.0.21

mkromberg commented 10 months ago

Fixed by https://github.com/Dyalog/link/commit/55036d7edfd4b476039ba3f1ab83138aeaa4387c