The related code snippet is: if [ a$(type -t do_install_ptest) = afunction ]; then do_install_ptest fi However, if the host is ubuntu, the check always fail, thus the do_install_ptest not run. Actually 'type' is a shell built in, we should avoid using it whenever possible. A simple example showing that using #!/bin/sh and 'type -t' will fail in ubuntu is shown below. <code> #!/bin/sh func_wrapper() { type -t func } func() { echo "THIS IS FUNC" } func_wrapper </code> chenqi@pek-qchen1-d1:~/test$ ./test.sh -t: not found func is a shell function //Chen Qi
Branch: master Commit: d5a4f031b460437e9501e4e65194ce94d3641130 URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d5a4f031b460437e9501e4e65194ce94d3641130
*** Bug 5111 has been marked as a duplicate of this bug. ***