aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/type.fish
Commit message (Collapse)AuthorAge
* Use command which in typeGravatar Fabian Homborg2016-02-28
| | | | | | | | Turns out some shells will alias which to be something function-aware, but doing this on fish would blow up because it would call type which would then call which which would then call type.... Fixes #2775
* Making spacing of .fish files uniform.Gravatar Nicholas Maccharoli2015-08-08
|
* Update various strings for translation, avoid _ for non-translationsGravatar David Adam2014-11-25
| | | | | Use __ instead of _ as a placeholder for ignored variables in `read` statements.
* Ensure `type` still works if $IFS is unsetGravatar Kevin Ballard2014-09-08
|
* type: Restore combined flags behaviorGravatar Kevin Ballard2014-07-14
| | | | | Fix the parsing of `type` flags to handle combined short flags as appropriate, e.g. `type -qf ls`.
* command: Rename -p/--path flag to -s/--searchGravatar Kevin Ballard2014-07-13
|
* type: Stop claiming `grep` is a functionGravatar Kevin Ballard2014-07-13
| | | | | | | | | | | | Use `functions -q` instead of searching the `functiosn -na` list for the provided word. This may result in an automatically-loaded function being sourced, but that happens anyway with the default output. This change means the results of `test -q foo` can be relied upon to indicate whether `foo` can actually be invoked. Previosly, if `foo` was the name of an automatically-loaded function file but did not actually define a function `foo`, and there was no execuable `foo`, then `type -q foo` would lie and say `foo` can be invoked when it can't.
* test: Add a new --quiet flag to suppress outputGravatar Kevin Ballard2014-07-13
| | | | | | | | | | The --quiet flag is useful when only the exit status matters. Fix the documentation for the -t flag to no longer claim that `type` can print "keyword", as it never does that. Stop printing a blank line for functions/builtins when the -p flag has been passed. It's just not useful.
* type: Separate the notion of multi and pathsGravatar Kevin Ballard2014-07-13
| | | | | | | Track whether -a and -f have been supplied separately. That way both `type -a -f command` and `type -f -a command` behaves correctly, as does `type -a -f foo` where there are multiple executables named `foo` in the $PATH.
* Fix `type` function to work betterGravatar Kevin Ballard2014-07-13
| | | | | | | | | | | | | | | | | | | | Stop using getopt to parse flags. It's far more expensive than necessary, and results in long flags not being parsed on OS X. This also allows args starting with - after the options list to be properly interpreted as a value to test. Print the error message to stderr as is appropriate. Use the new `command -p` functionality when the -a flag has not been provided (`command` does not have any equivalent to the -a flag), instead of using `which`. This is faster and also avoids any possible disagreement between `which` and what fish thinks is valid. Stop testing every path to see if it's executable, that test has already been done by `which` or `command -p`. The end result is `type -P ls` is roughly 250% faster, according to profiling, on my OS X machine.
* Make type -a print all executables in PATHGravatar Asger Hautop Drewsen2013-10-29
|
* optimize 'alias', fixing bug #486. Also some minor optimizations in 'type'Gravatar Jan Kanis2013-02-05
|
* Make umask work on OS XGravatar ridiculousfish2013-01-12
| | | | https://github.com/fish-shell/fish-shell/issues/515
* Added a seq function that defers to the seq command if presentGravatar ridiculousfish2013-01-12
| | | | https://github.com/fish-shell/fish-shell/issues/137
* Merged changes from codemonkey and grissiom branchesGravatar Christopher Nilsson2010-11-12
|\ | | | | | | | | | | Conflicts: kill.c seq.in
* | The grep on the commands would sometimes output errors, causing noise andGravatar David Frascone2010-11-05
| | | | | | | | breaking scripts.
| * remove trialing spaces #2Gravatar Grissiom2010-09-18
|/
* Make all descriptions for function calls use the implicit translation from ↵Gravatar axel2007-01-16
| | | | | | the previous patch instead of explicitly using N_ darcs-hash:20070116012918-ac50b-c1c0df64333ad910ca81dbc86ad193ece6680722.gz
* Update documentation display code to run roff on the client system instead ↵Gravatar axel2006-11-18
| | | | | | of pregenerating documentation and compiling it into program binaries darcs-hash:20061117162438-ac50b-5c4c7f0bd8bf53a16e16ecfead9569e642b7160f.gz
* Fix bug in type command causing type -f to return true even when no file was ↵Gravatar axel2006-04-11
| | | | | | found darcs-hash:20060410143201-ac50b-4d8a70cd9721edcddaf11324f0b575d3f8cbace8.gz
* Minor code tweak in type function, and add a missing newline to an output stringGravatar axel2006-03-17
| | | | darcs-hash:20060317132256-ac50b-87c066ec3aba2eded333ecbf2198de001c313570.gz
* Use 'type -f' instead of 'which' to test for presense of command, since the ↵Gravatar axel2006-03-14
| | | | | | latter does not set the exit status correctly on all platforms darcs-hash:20060314002127-ac50b-6ed726bdcc9e3a7a9608a904c382973799dc73ef.gz
* Make the type builtin not rely on the exit status of the which commandGravatar axel2006-03-14
| | | | darcs-hash:20060314000641-ac50b-cc92a519b6c8981a50aea0f25f407dfe2b5f51dc.gz
* Do gettext translation of descriptions just-in-time internally in fishGravatar axel2006-03-02
| | | | darcs-hash:20060301165347-ac50b-3df9feec60dd9860e0988396d10b550a501f6802.gz
* Redo installation file structure, move lots of things to $PREFIX/share/fishGravatar axel2006-02-17
darcs-hash:20060217101339-ac50b-d93d2c620a4b7f75f05ff461a6edbee001da7613.gz