one@voidlinux ~> pwd
/home/one
one@voidlinux ~> which red
/usr/bin/red
one@voidlinux ~> red
PROGRAM ERROR: Invalid encapsulated data.
one@voidlinux ~> /usr/bin/red
--== Red 0.5.4 ==--
Type HELP for starting information.
red>>
I'm using fish-shell, so it probably has something to do with the environment. Still, something is fishy.
one@voidlinux ~> env | sort > env1.txt
one@voidlinux ~> bash
[one@voidlinux ~]$ env | sort > env2.txt
[one@voidlinux ~]$ diff env*
16c16
< SHLVL=2
---
> SHLVL=3
22a23
> _=/usr/bin/env
Bottomline, works under bash, doesn't work under fish when called without specifying the absolute path.
Doesn't happen with red-054 or the automated build that I previously used, commit 7526673.
EDIT: Having a red binary in a current folder allows it to launch normally, red and ./red both.