GithubHelp home page GithubHelp logo

Comments (2)

faho avatar faho commented on June 15, 2024

Commands like brew install no longer work as the shell believes there's no current working directory

No, brew (or whatever a "shell-init" is) doesn't believe there is. The error message you get comes from that, not fish.

And like you see, both ls (another external command) and fish's builtin pwd handle this just fine, brew is pretty harsh and refuses to run a command that probably doesn't need the working directory, so they want you to cd ..

There isn't really a way to handle this for fish that doesn't involve opening the working directory on every command, which doesn't sound like a great use of resources.

This is with fish 3.3.1 using macOS Sonoma.

Sidenote: fish 3.3.1 is 15% of all commits ever made to fish behind (counting up to the last release). Please upgrade if you wish to report an issue.

from fish-shell.

alxhill avatar alxhill commented on June 15, 2024

Both ls and pwd "work" even if the current directory has been deleted, so I figured they were doing something else. brew is not the only tool that broke in this case, but it was the only one I had logs handy for - plus the shell-init error made me think it could be a shell thing. Anyway, thanks for taking a look!

I've verified the same behavior occurs on fish 3.7.0 fwiw.

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.