From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12711 invoked by alias); 10 Aug 2015 14:27:38 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36067 Received: (qmail 27172 invoked from network); 10 Aug 2015 14:27:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Biglobe-Sender: From: "Jun T." Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: PATCH: fix typo and format in the documents Message-Id: <3BF43C3E-AD75-4FE2-BE67-07738B29036A@kba.biglobe.ne.jp> Date: Mon, 10 Aug 2015 23:27:36 +0900 To: zsh-workers@zsh.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Biglobe-Spnum: 65103 All are minor typo and format fix. Doc/Zsh/builtins.yo | 16 ++++++++-------- Doc/Zsh/compsys.yo | 6 +++--- Doc/Zsh/contrib.yo | 6 +++--- Doc/Zsh/expn.yo | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 33f1122..5bbe7e7 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -716,11 +716,11 @@ Also when listing, startsitem() sitem(tt(-d))(prints timestamps for each event) sitem(tt(-f))(prints full time-date stamps in the US -`var(MM)tt(/)var(DD)tt(/)var(YY) var(hh):var(mm)' format) +`var(MM)tt(/)var(DD)tt(/)var(YY) var(hh)tt(:)var(mm)' format) sitem(tt(-E))(prints full time-date stamps in the European -`var(dd)tt(.)var(mm)tt(.)var(yyyy) var(hh):var(mm)' format) +`var(dd)tt(.)var(mm)tt(.)var(yyyy) var(hh)tt(:)var(mm)' format) sitem(tt(-i))(prints full time-date stamps in ISO8601 -`var(yyyy)tt(-)var(mm)tt(-)var(dd) var(hh):var(mm)' format) +`var(yyyy)tt(-)var(mm)tt(-)var(dd) var(hh)tt(:)var(mm)' format) sitem(tt(-t) var(fmt))(prints time and date stamps in the given format; var(fmt) is formatted with the strftime function with the zsh = extensions described for the tt(%D{)var(string)tt(}) prompt format in @@ -1727,10 +1727,10 @@ cindex(parameters, declaring) redef(SPACES)(0)(tt(ifztexi(NOTRANS(@ @ @ @ @ @ @ @ ))ifnztexi( = ))) xitem(tt(typeset )[ {tt(PLUS())|tt(-)}tt(AHUaghlmprtux) ] \ [ {tt(PLUS())|tt(-)}tt(EFLRZi) [ var(n) ] ]) -xitem(SPACES()[ tt(+) | var(name)[tt(=3D)var(value)] ... ]) +xitem(SPACES()[ tt(+) ] [ var(name)[tt(=3D)var(value)] ... ]) xitem(tt(typeset )tt(-T) [ {tt(PLUS())|tt(-)}tt(Uglprux) ] [ = {tt(PLUS())|tt(-)}tt(LRZ) [ var(n) ] ]) -xitem(SPACES()[ tt(+) | var(SCALAR)[tt(=3D)var(value)] = var(array)[tt(=3D)LPAR()var(value)RPAR()] [ var(sep) ] ]) -item(tt(typeset) tt(-f) [ {tt(PLUS())|tt(-)}tt(TUkmtuz) ] [ tt(+) | = var(name) ... ])( +xitem(SPACES()[ tt(+) | var(SCALAR)[tt(=3D)var(value)] = var(array)[tt(=3DLPAR())var(value) ...tt(RPAR())] [ var(sep) ] ]) +item(tt(typeset) tt(-f) [ {tt(PLUS())|tt(-)}tt(TUkmtuz) ] [ tt(+) ] [ = var(name) ... ])( Set or display attributes and values for shell parameters. =20 A parameter is created for each var(name) that does not already refer @@ -1760,7 +1760,7 @@ example(# Reserved word parsing typeset svar=3D$(echo one word) avar=3D(several words)) =20 The above creates a scalar parameter tt(svar) and an array -parameter tt(var) as if the assignments had been +parameter tt(avar) as if the assignments had been =20 example(svar=3D"one word" avar=3D(several words)) @@ -1879,7 +1879,7 @@ the current state, readonly specials (whose values = cannot be changed) are not shown and assignments to arrays are shown before the tt(typeset) rendering the array readonly. ) -item(tt(-T) [ var(scalar)[tt(=3D)var(value)] = var(array)[tt(=3D)LPAR()var(value)...RPAR()] [ var(sep) ] ])( +item(tt(-T) [ var(scalar)[tt(=3D)var(value)] = var(array)[tt(=3DLPAR())var(value) ...tt(RPAR())] [ var(sep) ] ])( This flag has a different meaning when used with tt(-f); see below. Otherwise the tt(-T) option requires zero, two, or three arguments to = be present. With no arguments, the list of parameters created in this diff --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo index 290c85f..d067795 100644 --- a/Doc/Zsh/compsys.yo +++ b/Doc/Zsh/compsys.yo @@ -3567,9 +3567,9 @@ otherwise the parameter is not used. item(tt(-s))( Enable em(option stacking) for single-letter options, whereby multiple single-letter options may be combined into a single word. For example, -the two options `tt(-)var(x)' and `tt(-)var(y)' may be combined into -a single word `tt(-)var(xy)'. By default, every word corresponds to a = single -option name (the `tt(-xy)' option). +the two options `tt(-x)' and `tt(-y)' may be combined into +a single word `tt(-xy)'. By default, every word corresponds to a = single +option name (`tt(-xy)' is a single option named `tt(xy)'). =20 Options beginning with a single hyphen or plus sign are eligible for = stacking; words beginning with two hyphens are not. diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 09ac5c8..e5665e6 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -2311,8 +2311,8 @@ be local to the calling function. =20 The options tt(-l) var(lbufvar) and tt(-r) var(rbufvar) may be used to specify parameters where the widget will store the resulting text from -the operation. The parameter var(lbufvar) will contain var(LBUFFER) -and var(rbufvar) will contain var(RBUFFER). Neither of these two = options +the operation. The parameter var(lbufvar) will contain tt(LBUFFER) +and var(rbufvar) will contain tt(RBUFFER). Neither of these two = options may be used with tt(-S) or tt(-R). =20 tt(narrow-to-region-invisible) is a simple widget which calls @@ -3756,7 +3756,7 @@ the difference in function between tt(zargs) and = tt(xargs)) or run tt(zargs) with the tt(-)tt(-help) option. ) findex(zed) -xitem(tt(zed) [ tt(-f) [ tt(-x) var(num) ] var(name)) +xitem(tt(zed) [ tt(-f) [ tt(-x) var(num) ] ] var(name)) item(tt(zed -b))( This function uses the ZLE editor to edit a file or function. =20 diff --git a/Doc/Zsh/expn.yo b/Doc/Zsh/expn.yo index 4d54c42..d44b40a 100644 --- a/Doc/Zsh/expn.yo +++ b/Doc/Zsh/expn.yo @@ -942,7 +942,7 @@ characters by tt(GLOB_SUBST). In other words, example(pattern=3D${(q)str} [[ $str =3D ${~pattern} ]]) =20 -works if tt($str) is tt('a*b') but not if it is tt('a b'), whereas +works if tt($str) is `tt(a*b)' but not if it is `tt(a b)', whereas =20 example(pattern=3D${(b)str} [[ $str =3D ${~pattern} ]])