Skip to content

Conversation

ilyagr
Copy link

@ilyagr ilyagr commented Sep 22, 2025

This is similar to, but should work better than the now-reverted 226d428

Currently, I get this error if I try to execute a vdj file on my Mac:

$ chmod +x test.vdj
$ ./test.vdj
exec: Failed to execute process './test.vdj': The file specified the interpreter 'vd -p', which is not an executable command.

With this change, it works.


Some references for the -S option:

Fixes #2869

This is similar to, but should work better than the now-reverted
saulpw@226d428

Currently, I get this error if I try to execute a vdj file on my Mac:

```console
$ chmod +x test.vdj
$ ./test.vdj
exec: Failed to execute process './test.vdj': The file specified the interpreter 'vd -p', which is not an executable command.
```

With this change, it works.

-----------------

Some references for the `-S` option:

- `man env`
- https://docs.astral.sh/uv/guides/scripts/#using-a-shebang-to-create-an-executable-file
is another example of using it.
Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ilyagr!

@ilyagr
Copy link
Author

ilyagr commented Sep 22, 2025

Thanks for making visidata! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shebang in vdj files doesn't work on macOS, easy to fix

2 participants