The V Programming Language

Simple, fast, safe language created for developing Volt, soon available for everyone.

Open source release in June 2019. Early access since April 15.
Install V from source in 0.5 seconds
wget vlang.io/v.c && gcc -o v v.c
1.9k

Wildcards in os module?

Alex
Apr 15 · 3 min read
vktec Jun 21 09:07
In the "V scripts" documentation (https://vlang.io/docs#bash), it is stated that the #v directive "will make all functions in the os module global". Later in that section, examples such as `rm('build/*')` are given, which appears to imply that os.rm parses wildcards in its arguments. To me, this seems like a bug, as it would allow filenames constructed from user input to do unexpected things.
medvednikov Jun 21 14:46
Yeah, I'm not 100% certain about this. Just an idea at this point.
Log in via GitHub to comment



Powered by vtalk, open-source blogging/forum software written in V