aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test7.in
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-07-10 00:37:54 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-07-13 19:11:29 -0700
commit29b3b6b31e3acbe2b5474db3b7c3841ba1ed17f9 (patch)
tree7871425094e4e281e474523d03ea2625d6ab301a /tests/test7.in
parent533496e43ac4de68537b66412d54e880e03b6561 (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