Giter Site home page Giter Site logo

Comments (6)

faho avatar faho commented on May 25, 2024

Fish is not bash-compatible, on purpose, so you'd have to translate those yourself.

See the documentation, possibly starting at Fish For Bash Users.

There are tools to get environment changes into fish (exported variables and such) like bass, but they won't get you bash settings like keybindings or language dialect (which, for the most part, simply don't exist in fish).

from fish-shell.

ahmeteid7 avatar ahmeteid7 commented on May 25, 2024
aichat
Failed to execute process '/home/eid/aichat'. Reason:
exec: Exec format error
The file '/home/eid/aichat' is marked as an executable but could not be run by the operating system.

that command work in bash withou any problem , why i get that in fish?

from fish-shell.

faho avatar faho commented on May 25, 2024

Your script is missing a shebang line - #!/bin/sh as the first line.

Additionally you are running an old version of fish (older than 3.3.0, released in 2021 and 16% of all commits ever made to fish behind).

Bash will then try to read it itself, other shells (including newer versions of fish) will then hand it to /bin/sh.

I recommend adding a shebang line to your script and upgrading fish, tho either would be enough to fix your problem. See https://fishshell.com/ for repositories with newer versions.

from fish-shell.

ahmeteid7 avatar ahmeteid7 commented on May 25, 2024

sorry, i miss the path of the right app(aichat), i was used wrong one, the path is that set -x PATH /home/eid/.cargo/bin $PATH
i added it to fish, and it worked.
I will try the newer versions of fish ,thank you

from fish-shell.

faho avatar faho commented on May 25, 2024

sorry, i miss the path of the right app(aichat), i was used wrong one, the path is that set -x PATH /home/eid/.cargo/bin $PATH

You have another aichat in at /home/eid/aichat, and that one is missing a shebang. It is also possibly in $PATH.

from fish-shell.

ahmeteid7 avatar ahmeteid7 commented on May 25, 2024

i'm still testing the newer virsion

from fish-shell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.