Spu7Nix / SPWN-language

A language for Geometry Dash triggers
MIT License
1.06k stars 61 forks source link

Rewrited @path #246

Closed SpeckyYT closed 2 years ago

SpeckyYT commented 2 years ago

Rewrote @path errors to something more epic

krista-chan commented 2 years ago

Won't merge yet, need to check cross platform behaviour as fs can be inconsistent across OSes (should have done this for initial @path pr too)

SpeckyYT commented 2 years ago

Input path is always normalized and then a formatted version is sent to the FS, therefore except the ~/ problem, I don't really know what other problems there might be. If anyone finds anything, let me know.

zTags commented 2 years ago

what's the ~/ problem

SpeckyYT commented 2 years ago

what's the ~/ problem

~/../ should give / if you're on root or main account, else it should give /home/

zTags commented 2 years ago

you can technically fix this by using the $HOME environment variable if you have access to that

SpeckyYT commented 2 years ago

My main question is... would anyone care if the FS utility isn't perfect? It's a programming language made for compiling to geometry dash triggers, already the current system is more advanced then what it's needed.

zTags commented 2 years ago

truee

zTags commented 2 years ago

but spwn needs environment variables what if someone wants to use discord.spwn

krista-chan commented 2 years ago

My main question is... would anyone care if the FS utility isn't perfect? It's a programming language made for compiling to geometry dash triggers, already the current system is more advanced then what it's needed.

If you're going to have paths in any language, do them right.