New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type
should be a builtin
#7342
Comments
I was thinking of opening an issue similar to this simply because of how slow |
While we use `type -q` a bunch, the other options are kind of unutilized, and so having a test is nice when we want to reimplement it. See #7342.
Okay, it is done. Now a time call is ~10us instead of ~200us. Yes, that is a factor of 20, but it is also microseconds. (also |
That's interesting, |
@IlanCosman With 3.1.2 or master? We made |
@faho With 3.1.2. That might explain it 😄 |
As you may have noticed, I've been working towards making fish more usable without its functions and config.fish.
Partly, this involves moving important things to C++.
Today's candidate: The
type
function.It's an important function that's useful for interactive and non-interactive use, so it should just be a builtin.
My general idea is that fish should be usable, especially non-interactively, without any functions. That means things like
type
andpsub
would have to be included somehow, but compatibility things likealias
and evenexport
don't have to be (because you can just useset -x
). Enhancement like withcd
is probably okay, if that's focused on interactive use?The text was updated successfully, but these errors were encountered: