From patchwork Wed May 18 09:07:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Mishyn X-Patchwork-Id: 9117481 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-dash@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A51A5BF29F for ; Wed, 18 May 2016 09:07:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7201C20172 for ; Wed, 18 May 2016 09:07:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB17C2010E for ; Wed, 18 May 2016 09:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750870AbcERJHk (ORCPT ); Wed, 18 May 2016 05:07:40 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:42196 "EHLO mail2.openmailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751958AbcERJHi (ORCPT ); Wed, 18 May 2016 05:07:38 -0400 Received: by mail2.openmailbox.org (Postfix, from userid 1001) id 19758105A97; Wed, 18 May 2016 11:07:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1463562456; bh=lTNSCf75l0ivZlxKMbEJtYaxjk9jMxvuYlHr3VVEcx0=; h=Date:From:To:Subject:From; b=YVV395KqDxgI0qrZAOGbBjP83L0u/DY2veYl1t8FRvpy9jlWuvi+X3XgV68ONay1v 7AkmYgoFO3wVl37uUuMSGLMKemmhxTE/uvP6mGdpUNyWkcfFE4GP+fmZb3O67ZyI3/ M97cSkZ/CvlHH/ZKfjiPWW6jJr/leKFC7HNd/uXE= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from localhost (unknown [130.180.220.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: juef@openmailbox.org) by mail2.openmailbox.org (Postfix) with ESMTPSA id 4DC4D105A98 for ; Wed, 18 May 2016 11:07:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1463562454; bh=lTNSCf75l0ivZlxKMbEJtYaxjk9jMxvuYlHr3VVEcx0=; h=Date:From:To:Subject:From; b=FF3BYFWYo+auPvx3k0h+lAFxj1MTytSRbrD+gWZ8/SVdSZCtuyoebwc9yYamKuR9L DQcIf4B4EY9Pi+PTenhuGxJfzFaq5lq3yKfQ+caBXs/VpnmOcmd4fKSWZrWOucRuIV +0tEGwjKGPAQr3M529nu4ltU6+kg+s2njkVUjG6E= Date: Wed, 18 May 2016 12:07:28 +0300 From: Svyatoslav Mishyn To: dash@vger.kernel.org Subject: man fixes Message-ID: <20160518090722.GA370@k8> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, just found some typos and mdocml warnings. diff --git a/src/dash.1 b/src/dash.1 index 832eae7..57e731a 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -32,9 +32,9 @@ .\" .\" @(#)sh.1 8.6 (Berkeley) 5/4/95 .\" -.Dd January 19, 2003 -.Os +.Dd May 13, 2016 .Dt DASH 1 +.Os .Sh NAME .Nm dash .Nd command interpreter (shell) @@ -694,7 +694,6 @@ Builtin commands grouped into a (list) will not affect the current shell. The second form does not fork another shell so is slightly more efficient. Grouping commands together this way allows you to redirect their output as though they were one program: -.Pp .Bd -literal -offset indent { printf \*q hello \*q ; printf \*q world\\n" ; } \*[Gt] greeting .Ed @@ -1183,7 +1182,7 @@ option turns off the effect of any preceding .Fl P options. .It Xo echo Op Fl n -.Ar args... +.Ar args... .Xc Print the arguments on the standard output, separated by spaces. Unless the @@ -1417,7 +1416,6 @@ and and the option .Op c , which requires an argument. -.Pp .Bd -literal -offset indent while getopts abc: f do @@ -1431,7 +1429,6 @@ shift `expr $OPTIND - 1` .Ed .Pp This code will accept any of the following as equivalent: -.Pp .Bd -literal -offset indent cmd \-acarg file file cmd \-a \-c arg file file @@ -1522,7 +1519,6 @@ variables. With the .Fl p option specified the output will be formatted suitably for non-interactive use. -.Pp .It Xo printf Ar format .Op Ar arguments ... .Xc @@ -1814,7 +1810,7 @@ If n is greater than the number of positional parameters, .Ic shift will issue an error message, and exit with return status 2. .It test Ar expression -.It \&[ Ar expression Cm ] +.It \&[ Ar expression No \&] The .Ic test utility evaluates the expression and, if it evaluates @@ -2176,7 +2172,6 @@ the current limit is displayed. Limits of an arbitrary process can be displayed or set using the .Xr sysctl 8 utility. -.Pp .It umask Op Ar mask Set the value of umask (see .Xr umask 2 ) @@ -2233,15 +2228,6 @@ will throw you into command VI command mode. Hitting .Aq return while in command mode will pass the line to the shell. -.Sh EXIT STATUS -Errors that are detected by the shell, such as a syntax error, will cause the -shell to exit with a non-zero exit status. -If the shell is not an -interactive shell, the execution of the shell file will be aborted. -Otherwise -the shell will return the exit status of the last command executed, or -if the exit builtin is used with a numeric argument, it will return the -argument. .Sh ENVIRONMENT .Bl -tag -width MAILCHECK .It Ev HOME @@ -2318,12 +2304,21 @@ command. The process ID of the parent process of the shell. .El .Sh FILES -.Bl -item -width HOMEprofilexxxx -.It -.Pa $HOME/.profile -.It -.Pa /etc/profile +.Bl -tag -width "$HOME/.profileXX" -compact +.It Pa $HOME/.profile +User's login profile. +.It Pa /etc/profile +System login profile. .El +.Sh EXIT STATUS +Errors that are detected by the shell, such as a syntax error, will cause the +shell to exit with a non-zero exit status. +If the shell is not an +interactive shell, the execution of the shell file will be aborted. +Otherwise +the shell will return the exit status of the last command executed, or +if the exit builtin is used with a numeric argument, it will return the +argument. .Sh SEE ALSO .Xr csh 1 , .Xr echo 1 ,