From e933cd9e8dcbc63a374d9f7d8df0af309dceac93 Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Wed, 14 Jan 2026 13:10:08 +0100 Subject: [PATCH] tools: add note for vrun on OpenBSD (env -S not supported) (#26352) --- cmd/tools/vrun | 5 +++-- doc/docs.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/tools/vrun b/cmd/tools/vrun index 621eda967..ade7245cd 100755 --- a/cmd/tools/vrun +++ b/cmd/tools/vrun @@ -5,8 +5,9 @@ v run $@ ## the `/usr/bin/env` implementation, does not yet support a `-S` option. ## Notes: FreeBSD's env supports it since 2006. ## GNU's coreutils env supports it since 2018. -## However, for example BusyBox's env still does not (2025/02/04), and there may -## be others like it too :-| . +## BusyBox's env does not support it (2025/02/04). +## OpenBSD's env does not support it (2026/01/14). +## And there may be others like it too :-| . ## On such systems, you can copy this script, or symlink it, somewhere in your PATH, ## and then start your .vsh scripts with: `#!/usr/bin/env vrun`. diff --git a/doc/docs.md b/doc/docs.md index 9b87f5c2e..9917958d2 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -8421,7 +8421,7 @@ exists the file will be overridden. If you want to rebuild each time and not kee 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). +env program (`/usr/bin/env`), that still does not support an `-S` option (like BusyBox and OpenBSD). See https://github.com/vlang/v/blob/master/cmd/tools/vrun for more details. # Appendices -- 2.39.5