Giter Site home page Giter Site logo

Comments (5)

faho avatar faho commented on June 23, 2024 1

Even if we did that, setting $EDITOR like that would still be a bad idea - it's also used outside of fish, and e.g. git sure won't know what a command kak is.

I would rather figure out that a variable expands to command or builtin and error out.

from fish-shell.

faho avatar faho commented on June 23, 2024

You want either command $EDITOR or set -gx EDITOR (command -s kak) -c global.

The reason command foo doesn't work in a variable is because it's syntactically important, just like e.g. if won't work there.

from fish-shell.

SArpnt avatar SArpnt commented on June 23, 2024

could this give a better error message? even unknown command: command i think would make more sense. what's actually happening when you do this?

from fish-shell.

faho avatar faho commented on June 23, 2024

command is both a keyword (for command foo) and a builtin (for command --search foo and command --help).

What you are running is effectively builtin command kak -c because it skips the keyword step.

from fish-shell.

krobelus avatar krobelus commented on June 23, 2024

maybe we can make it a regular builtin, I don't off-hand see an advantage to decorators being keywords except maybe easier implementation. Things like if are different because it kind of needs to be known before variable expansion.

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.