No, because the $greo semanti /var/db/pkg/*/*/USE line will not be
executed at all.  The if [ -n $greo ] condition only passes if $greo
contains the path of the greo application.

On Sun, Apr 20, 2014 at 12:05 PM, Toralf Förster <toralf.foers...@gmx.de> wrote:
> On 04/20/2014 07:58 PM, Alan Young wrote:
>> greo=$(command -v greo)
>>
>> if [ -n $greo ]; then
>>   $greo ...
>> fi
>>
>> command will search the directories defined in $PATH for the command
>> greo and return the fully qualified path.  If it isn't found it will
>> return null.  So, if $greo is non-zero, greo exists and you can run
>> it.
>
> If "greo" does not exist - will bash in that case expand /var/db/pkg/*/*/USE 
> neverttheless ?
>
>
>
> --
> Toralf
>



-- 
Alan Young

Reply via email to