mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
36067: fix typo and format in the documentation
This commit is contained in:
parent
321116c4cc
commit
bde91914df
5 changed files with 20 additions and 15 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-08-11 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 36067: Doc/Zsh/builtins.yo, Doc/Zsh/compsys.yo,
|
||||
Doc/Zsh/contrib.yo, Doc/Zsh/expn.yo: fix typo and format
|
||||
|
||||
2015-08-10 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 36084: Src/glob.c, Src/text.c: use zrealloc() consistently
|
||||
|
|
|
@ -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(=)var(value)] ... ])
|
||||
xitem(SPACES()[ tt(+) ] [ var(name)[tt(=)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(=)var(value)] var(array)[tt(=)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(=)var(value)] var(array)[tt(=LPAR())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.
|
||||
|
||||
A parameter is created for each var(name) that does not already refer
|
||||
|
@ -1760,7 +1760,7 @@ example(# Reserved word parsing
|
|||
typeset svar=$(echo one word) avar=(several words))
|
||||
|
||||
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
|
||||
|
||||
example(svar="one word"
|
||||
avar=(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(=)var(value)] var(array)[tt(=)LPAR()var(value)...RPAR()] [ var(sep) ] ])(
|
||||
item(tt(-T) [ var(scalar)[tt(=)var(value)] var(array)[tt(=LPAR())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
|
||||
|
|
|
@ -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)').
|
||||
|
||||
Options beginning with a single hyphen or plus sign are eligible for stacking;
|
||||
words beginning with two hyphens are not.
|
||||
|
|
|
@ -2311,8 +2311,8 @@ be local to the calling function.
|
|||
|
||||
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).
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
@ -942,7 +942,7 @@ characters by tt(GLOB_SUBST). In other words,
|
|||
example(pattern=${(q)str}
|
||||
[[ $str = ${~pattern} ]])
|
||||
|
||||
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
|
||||
|
||||
example(pattern=${(b)str}
|
||||
[[ $str = ${~pattern} ]])
|
||||
|
|
Loading…
Reference in a new issue