Re: command lookup and POSIX

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

 



On 2014-03-07, at 12:43, 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.
>    ...
> Of course I can't find a single shell that follows this, even when
> enabling its respective strict POSIX mode.
> 
z/OS: http://pic.dhe.ibm.com/infocenter/zos/v2r1/topic/com.ibm.zos.v2r1.bpxa500/toc.htm

user@HOST: uname -a                                                                                                                    
OS/390 MVS3 23.00 03 2818
user@HOST: type echo                                                                                                                  
echo is a built-in command
user@HOST: PATH=/bin echo Hello                                                                                                        
Hello
user@HOST: PATH=/foo echo Hello                                                                                                        
echo: FSUM7351 not found

> ... I'm guessing it was added to
> prevent changes in behaviors of existing scripts as shells add more
> builtins.
> 
I would agree.

-- gil

--
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