Re: command lookup and POSIX

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/07/2014 12:43 PM, Jason Miller wrote:
> Reading this:
> 
> http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_01_01
> 
> Any built-in other than the special built-ins, or listed in the table
> there should not be run unless it is present in the PATH.
> 
> dash however doesn't follow that:
> 
> PS1="% " dash
> 
>     % PATH=

Stop right there.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08

"If PATH is unset or is set to null, the path search is
implementation-defined."

Therefore, you have triggered implementation-defined behavior, rather
than exposing a bug in dash.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux