Re: command lookup and POSIX

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

 



On 14:53 Fri 07 Mar     , Eric Blake wrote:
> 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.
Okay same question with PATH=/foo (dash's behavior is the same)

--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux