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-06 09:37 UTC
====================================================================== 
Summary:                    command -v must find something executable
====================================================================== 

---------------------------------------------------------------------- 
 (0003845) stephane (reporter) - 2017-09-06 09:37
 http://austingroupbugs.net/view.php?id=1161#c3845 
---------------------------------------------------------------------- 
Re: http://austingroupbugs.net/view.php?id=1161#c3836
> And while I agree that command -e might be useful to have,
> this is not the place to get it added - it needs to be
> implemented first, which means convincing some shell
> implementers to actually add it ... while I can see the
> benefits, no-one is clamoring for it to be added to the NetBSD
> sh, so I have not added it - as long as that kind of thing
> remains the status quo, it cannot be added to the standard -
> we are not here to legislate for the addition of new features. 

AFAIK, "command" was a POSIX invention in the first place, so
was a feature whose addition was legislated by POSIX.

"command -v" was meant to paliate the need for an equivalent to
the (broken / csh-only) "which" command. Since then, "which" has
evolved to a command that does the equivalent of yash's "command
-ve" or ksh's "whence -p", so it would make sense to add that.

Not to mention that some people have objected in that recent
discussion about the "exec" special builtin  to "env" being
guaranteed to execute external commands any longer, so we need an
alternative like yash's "command -e". 

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                          
2017-09-05 08:30 stephane       Note Added: 0003824                          
2017-09-05 12:34 steffen        Note Added: 0003825                          
2017-09-05 12:39 steffen        Note Added: 0003826                          
2017-09-05 12:47 kre            Note Added: 0003827                          
2017-09-05 13:37 steffen        Note Added: 0003828                          
2017-09-05 15:37 chet_ramey     Note Added: 0003829                          
2017-09-05 15:41 stephane       Note Added: 0003830                          
2017-09-05 16:01 stephane       Note Added: 0003831                          
2017-09-05 16:36 stephane       Note Added: 0003832                          
2017-09-05 17:30 stephane       Note Added: 0003833                          
2017-09-05 20:17 steffen        Note Added: 0003834                          
2017-09-05 20:19 steffen        Note Added: 0003835                          
2017-09-05 20:27 kre            Note Added: 0003836                          
2017-09-05 20:29 chet_ramey     Note Added: 0003837                          
2017-09-05 21:27 eblake         Note Added: 0003838                          
2017-09-05 21:50 kre            Note Added: 0003839                          
2017-09-05 21:52 kre            Note Edited: 0003839                         
2017-09-05 22:21 eblake         Note Added: 0003840                          
2017-09-05 22:23 Don Cragun     Note Added: 0003841                          
2017-09-05 22:24 Don Cragun     Note Deleted: 0003841                        
2017-09-06 00:00 kre            Note Added: 0003842                          
2017-09-06 00:00 kre            Note Deleted: 0003839                        
2017-09-06 08:30 stephane       Note Added: 0003843                          
2017-09-06 08:32 stephane       Note Edited: 0003843                         
2017-09-06 09:30 stephane       Note Added: 0003844                          
2017-09-06 09:37 stephane       Note Added: 0003845                          
======================================================================


Reply via email to