Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[linux/fish-shell] Red either fails or runs depending on the way it is called #1547

@xaduha

Description

@xaduha
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions