View Single Post
  #4   (View Single Post)  
Old 1st September 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

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.
Reply With Quote