Permalink
Please sign in to comment.
Browse files
Implement 'type' without -t.
Addresses issue #61 (abuild uses this.)
- Loading branch information...
Showing
with
26 additions
and 11 deletions.
- +12 −7 core/builtin.py
- +0 −4 core/cmd_exec.py
- +9 −0 gold/abuild.sh
- +5 −0 test/gold.sh
| @@ -0,0 +1,9 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Snippets from abuild that we need to run correctly. | ||
| is_function() { | ||
| type "$1" 2>&1 | head -n 1 | egrep -q "is a (shell )?function" | ||
| } | ||
| "$@" |
0 comments on commit
4d332f7