diff options
author | Kevin Ballard <kevin@sb.org> | 2014-07-10 00:37:54 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-07-13 19:11:29 -0700 |
commit | 29b3b6b31e3acbe2b5474db3b7c3841ba1ed17f9 (patch) | |
tree | 7871425094e4e281e474523d03ea2625d6ab301a /tests/test7.in | |
parent | 533496e43ac4de68537b66412d54e880e03b6561 (diff) |
type: Stop claiming `grep` is a function
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.
Diffstat (limited to 'tests/test7.in')
0 files changed, 0 insertions, 0 deletions