A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1161 
====================================================================== 
Reported By:                steffen
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1161
Category:                   Shell and Utilities
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       steffen 
Organization:                
User Reference:              
Section:                    command 
Page Number:                2596 
Line Number:                84274 ff. 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2017-09-04 13:09 UTC
Last Modified:              2017-09-05 06:58 UTC
====================================================================== 
Summary:                    command -v must find something executable
====================================================================== 

---------------------------------------------------------------------- 
 (0003823) stephane (reporter) - 2017-09-05 06:58
 http://austingroupbugs.net/view.php?id=1161#c3823 
---------------------------------------------------------------------- 
In a separate discussion (about whether "exec" or "env" may execute
builtins or functions), we mentioned adding a "command -e" to only execute
*external* commands (already implemented in "yash").

That would also be useful here as a "command -ve" to return the path of
external executables only.

About bash and non-executable files, note that the behaviour changes when
bash is in POSIX mode. The behaviour is mentioned at
https://unix.stackexchange.com/questions/85249/why-not-use-which-what-to-use-then/85250#85250
(messy article but with some valid points). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2017-09-04 13:09 steffen        New Issue                                    
2017-09-04 13:09 steffen        Name                      => steffen         
2017-09-04 13:09 steffen        Section                   => command         
2017-09-04 13:09 steffen        Page Number               => 2596            
2017-09-04 13:09 steffen        Line Number               => 84274 ff.       
2017-09-04 15:49 kre            Note Added: 0003821                          
2017-09-05 06:58 stephane       Note Added: 0003823                          
======================================================================


Reply via email to