The
$? environment variable contains the return code of the last executed command.
Test 1:
Start with manually issuing a glocate command:
$ glocate --help
There are several possible outcomes. If you get this:
Code:
sh: glocate: not found
you will know that glocate is not installed in any of the directories listed in $PATH.
If you get any other output, then glocate has executed, and you need Test 2:
$ echo $?
The value echoed will be the return code from glocate.
Quote:
sh scripting is just so ugly, that's why I want to use Sparforte.
|
You are attempting to
port the application to NetBSD. Porting usually requires programming skills. In this case, you will need to understand why the locate test is failing, and make the applicable changes, either to the glocate installation configuration, or to this test.