bring documentation of command up to date wrt. POSIX and whence wrt. command
(inspired from a bugreport by Martijn Dekker who noted this is currently broken)
This commit is contained in:
		
							
								
								
									
										40
									
								
								mksh.1
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								mksh.1
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | |||||||
| .\" $MirOS: src/bin/mksh/mksh.1,v 1.389 2016/02/11 19:00:50 tg Exp $ | .\" $MirOS: src/bin/mksh/mksh.1,v 1.390 2016/02/26 19:38:42 tg Exp $ | ||||||
| .\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $ | .\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $ | ||||||
| .\"- | .\"- | ||||||
| .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, | .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, | ||||||
| @@ -76,7 +76,7 @@ | |||||||
| .\" with -mandoc, it might implement .Mx itself, but we want to | .\" with -mandoc, it might implement .Mx itself, but we want to | ||||||
| .\" use our own definition. And .Dd must come *first*, always. | .\" use our own definition. And .Dd must come *first*, always. | ||||||
| .\" | .\" | ||||||
| .Dd $Mdocdate: February 11 2016 $ | .Dd $Mdocdate: February 26 2016 $ | ||||||
| .\" | .\" | ||||||
| .\" Check which macro package we use, and do other -mdoc setup. | .\" Check which macro package we use, and do other -mdoc setup. | ||||||
| .\" | .\" | ||||||
| @@ -5141,38 +5141,20 @@ If job monitoring is enabled, the completion status of jobs is printed | |||||||
| .Op Fl pv | .Op Fl pv | ||||||
| .Op Ar name ... | .Op Ar name ... | ||||||
| .Xc | .Xc | ||||||
| For each |  | ||||||
| .Ar name , |  | ||||||
| the type of command is listed (reserved word, built-in, alias, |  | ||||||
| function, tracked alias, or executable). |  | ||||||
| If the |  | ||||||
| .Fl p |  | ||||||
| option is used, a path search is performed even if |  | ||||||
| .Ar name |  | ||||||
| is a reserved word, alias, etc. |  | ||||||
| Without the | Without the | ||||||
| .Fl v | .Fl v | ||||||
| option, | option, it is the same as | ||||||
| .Ic whence | .Ic command Fl v , | ||||||
| is similar to | except aliases are not printed as alias command. | ||||||
| .Ic command Fl v |  | ||||||
| except that |  | ||||||
| .Ic whence |  | ||||||
| will find reserved words and won't print aliases as alias commands. |  | ||||||
| With the | With the | ||||||
| .Fl v | .Fl v | ||||||
| option, | option, it is exactly the same as | ||||||
| .Ic whence |  | ||||||
| is the same as |  | ||||||
| .Ic command Fl V . | .Ic command Fl V . | ||||||
| Note that for | In either case, the | ||||||
| .Ic whence , |  | ||||||
| the |  | ||||||
| .Fl p | .Fl p | ||||||
| option does not affect the search path used, as it does for | option differs: the search path is not affected in | ||||||
| .Ic command . | .Ic whence , | ||||||
| If the type of one or more of the names could not be determined, the exit | but the search is restricted to the path. | ||||||
| status is non-zero. |  | ||||||
| .El | .El | ||||||
| .Ss Job control | .Ss Job control | ||||||
| Job control refers to the shell's ability to monitor and control jobs which | Job control refers to the shell's ability to monitor and control jobs which | ||||||
| @@ -6609,7 +6591,7 @@ and historic practice of several shells which several scripts | |||||||
| (admittedly wrongly) depend on. | (admittedly wrongly) depend on. | ||||||
| .Pp | .Pp | ||||||
| This document attempts to describe | This document attempts to describe | ||||||
| .Nm mksh\ R52b | .Nm mksh\ R52b+CVS | ||||||
| and up, | and up, | ||||||
| .\" with vendor patches from insert-your-name-here, | .\" with vendor patches from insert-your-name-here, | ||||||
| compiled without any options impacting functionality, such as | compiled without any options impacting functionality, such as | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user