-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Nice utility!
Although it doesn't find functions (even the ones that are defined in ~/.bashrc). And functions are also executable constructs, which could easily wrap any binary in ${PATH}.
~/workspace/origin/target$ top() { echo 'hey!'; /bin/ls ${@}; }
~/workspace/origin/target$ top
hey!
origin origin.o
~/workspace/origin/target$ LC_ALL=C type top
top is a function
top ()
{
echo 'hey!';
/bin/ls ${@}
}
~/workspace/origin/target$ ./origin top
'top' found in PATH as '/usr/bin/top'
'/usr/bin/top' is an executable
~/workspace/origin/target$
Metadata
Metadata
Assignees
Labels
No labels