tools: add a small utility script cmd/tools/vrun, to make it easier to use .vsh scripts on systems, with /usr/bin/env still not supporting -S

This commit is contained in:
Delyan Angelov 2025-02-04 14:51:38 +02:00
parent d30598bbca
commit 7ea5b4a020
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 30 additions and 0 deletions

View file

@ -8132,6 +8132,10 @@ were made and keep the binary as `tmp.<scriptfilename>`. **Caution**: if this fi
exists the file will be overridden. If you want to rebuild each time and not keep this binary
instead use `#!/usr/bin/env -S v -raw-vsh-tmp-prefix tmp run`.
Note: there is a small shell script `cmd/tools/vrun`, that can be useful for systems, that have an
env program (`/usr/bin/env`), that still does not support an `-S` option (like BusyBox).
See https://github.com/vlang/v/blob/master/cmd/tools/vrun for more details.
# Appendices
## Appendix I: Keywords