Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 586236

Summary: ebuild(5) specifies incorrect behaviour of `has`
Product: Portage Development Reporter: Sergey 'L29Ah' Alirzaev <zl29ah>
Component: DocumentationAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey 'L29Ah' Alirzaev 2016-06-17 21:13:00 UTC
>        has <item> <item list>
>              If  item is in item list, then has returns 0. Otherwise, 1 is returned. There is another version,
>              hasv, that will conditionally echo item.
>              The item list is delimited by the IFS variable.  This variable has a default value of ' ',  or  a
>              space.  It is a bash(1) setting.

In fact it doesn't split arguments and PMS agrees with this behaviour.