examples: simplify the shebang in the v_script.vsh example

Delyan Angelov 2022-06-04 20:15:39 +03:00 committed by Chewing_Bever
parent cf7ae39e62
commit bed93ad891
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 5 additions and 1 deletions

View File

@ -1,9 +1,13 @@
#!/usr/local/bin/v run
#!/usr/local/bin/v
// The shebang above associates the file to V on Unix-like systems,
// so it can be run just by specifying the path to the file
// once it's made executable using `chmod +x`.
// Note that you can also use: `#!/usr/bin/env -S v crun`, if your system supports the -S flag to env
// The benefit is that in this case, v could be anywhere in your path, while /usr/bin/env is guaranteed
// to be present on most Unix systems in that exact place.
for _ in 0 .. 3 {
println('V script')
}