1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 22:51:42 +02:00

29307, 29308 + replies: Fix some doubled words in docs and comments.

This commit is contained in:
Mikael Magnusson 2011-05-19 16:10:46 +00:00
parent a88f38b2c4
commit 72cb7cfc6f
32 changed files with 45 additions and 40 deletions

View file

@ -1,3 +1,8 @@
2011-05-19 Mikael Magnusson <mikachu@gmail.com>
* 29307, 29308 + replies: Fix some doubled words in docs and
comments.
2011-05-18 Wayne Davison <wayned@users.sourceforge.net> 2011-05-18 Wayne Davison <wayned@users.sourceforge.net>
* Valentin Haenel: 29315: Completion/Unix/Command/_git: add a * Valentin Haenel: 29315: Completion/Unix/Command/_git: add a
@ -14747,5 +14752,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5311 $ * $Revision: 1.5312 $
***************************************************** *****************************************************

View file

@ -178,7 +178,7 @@ _bsd_pkg() {
'-m[show mtree files]' '-m[show mtree files]'
'-p[show installation prefixes]' '-p[show installation prefixes]'
'-q[be quiet]' '-q[be quiet]'
'-R[show list list of installed requiring packages]' '-R[show list of installed requiring packages]'
'-r[show requirements scripts]' '-r[show requirements scripts]'
'-v[be verbose]' '-v[be verbose]'
) )

View file

@ -96,7 +96,7 @@ suffixes=("")
autosuffix=() autosuffix=()
while [[ $# -gt 0 && "$str" == *${1}* ]]; do while [[ $# -gt 0 && "$str" == *${1}* ]]; do
# Remove anything up to the the suffix. # Remove anything up to the suffix.
str="${str#*${1}}" str="${str#*${1}}"

View file

@ -131,7 +131,7 @@ _git-archive () {
'--format=-[format of the resulting archive]:archive format:__git_archive_formats' \ '--format=-[format of the resulting archive]:archive format:__git_archive_formats' \
'(- :)'{-l,--list}'[list available archive formats]' \ '(- :)'{-l,--list}'[list available archive formats]' \
'(-v --verbose)'{-v,--verbose}'[report progress to stderr]' \ '(-v --verbose)'{-v,--verbose}'[report progress to stderr]' \
'--prefix=-[prepend the given path prefix to to each filename]:path prefix:_directories -r ""' \ '--prefix=-[prepend the given path prefix to each filename]:path prefix:_directories -r ""' \
'--output=[write archive to argument instead of stdout]:archive:_files' \ '--output=[write archive to argument instead of stdout]:archive:_files' \
'--worktree-attributes[look for attributes in .gitattributes in working directory too]' \ '--worktree-attributes[look for attributes in .gitattributes in working directory too]' \
$backend_args \ $backend_args \

View file

@ -4,7 +4,7 @@
# #
# This file is released under the GPLv2. # This file is released under the GPLv2.
# #
# Based on the the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html # Based on the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html
# #
# Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no # Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no
# zstyle ':completion:*:osc-subcommand:*' verbose no # zstyle ':completion:*:osc-subcommand:*' verbose no

View file

@ -2605,7 +2605,7 @@ _perforce_cmd_tickets() {
_perforce_cmd_triggers() { _perforce_cmd_triggers() {
_arguments -s : \ _arguments -s : \
'-o[output form to stdout]' \ '-o[output form to stdout]' \
'-i[read from from stdin]' '-i[read from stdin]'
} }

View file

@ -26,7 +26,7 @@
# expand-or-complete, expand-or-complete-prefix, list-choices, # expand-or-complete, expand-or-complete-prefix, list-choices,
# menu-complete, menu-expand-or-complete, or reverse-menu-complete). # menu-complete, menu-expand-or-complete, or reverse-menu-complete).
# This creates a widget behaving like <style> so that the # This creates a widget behaving like <style> so that the
# completions are chosen as given in the the rest of the file, # completions are chosen as given in the rest of the file,
# rather than by the context. The widget has the same name as # rather than by the context. The widget has the same name as
# the autoload file and can be bound using bindkey in the normal way. # the autoload file and can be bound using bindkey in the normal way.
# #

View file

@ -4,7 +4,7 @@
# #
# This file is released under the GPLv2. # This file is released under the GPLv2.
# #
# Based on the the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html # Based on the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html
# #
# Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no # Toggle verbose completions: zstyle ':completion:*:osc:*' verbose no
# zstyle ':completion:*:osc-subcommand:*' verbose no # zstyle ':completion:*:osc-subcommand:*' verbose no

View file

@ -4,7 +4,7 @@
# #
# This file is released under the GPLv2. # This file is released under the GPLv2.
# #
# Based on the the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html # Based on the zsh guide from http://zsh.dotsrc.org/Guide/zshguide06.html
# #
# Toggle verbose completions: zstyle ':completion:*:zypper:*' verbose no # Toggle verbose completions: zstyle ':completion:*:zypper:*' verbose no
# zstyle ':completion:*:zypper-subcommand:*' verbose no # zstyle ':completion:*:zypper-subcommand:*' verbose no

View file

@ -621,7 +621,7 @@ ifnzman(noderef(Arithmetic Evaluation))\
. By default var(mathfn) may take . By default var(mathfn) may take
any number of comma-separated arguments. If var(min) is given, any number of comma-separated arguments. If var(min) is given,
it must have exactly var(min) args; if var(min) and var(max) are it must have exactly var(min) args; if var(min) and var(max) are
both given, it must have at least var(min) and and at most var(max) both given, it must have at least var(min) and at most var(max)
args. var(max) may be -1 to indicate that there is no upper limit. args. var(max) may be -1 to indicate that there is no upper limit.
By default the function is implemented by a shell function of the same By default the function is implemented by a shell function of the same

View file

@ -363,7 +363,7 @@ entry. `tt(-B 1)' is equivalent to `tt(-b)'.
) )
item(tt(-C) var(calfile))( item(tt(-C) var(calfile))(
Explicitly specify a calendar file instead of the value of Explicitly specify a calendar file instead of the value of
the tt(calendar-file) style or the the default tt(~/calendar). the tt(calendar-file) style or the default tt(~/calendar).
) )
item(tt(-d))( item(tt(-d))(
Move any events that have passed from the calendar file to the Move any events that have passed from the calendar file to the

View file

@ -69,7 +69,7 @@ search is retried with the last pathname component. If the command starts
with a tt(=), completion is tried with the pathname of the command. with a tt(=), completion is tried with the pathname of the command.
Any of the var(command) strings may be patterns of the form normally Any of the var(command) strings may be patterns of the form normally
used for filename generation. These should be be quoted to protect them used for filename generation. These should be quoted to protect them
from immediate expansion; for example the command string tt('foo*') from immediate expansion; for example the command string tt('foo*')
arranges for completion of the words of any command beginning with arranges for completion of the words of any command beginning with
tt(foo). When completion is attempted, all pattern completions are tt(foo). When completion is attempted, all pattern completions are

View file

@ -1934,7 +1934,7 @@ changing the foreground background colour, are also available, as is the form
(or, with a numeric argument, some other) width. (or, with a numeric argument, some other) width.
After deleting this prompt the variable tt(LISTPROMPT) should be unset for After deleting this prompt the variable tt(LISTPROMPT) should be unset for
the the removal to take effect. the removal to take effect.
) )
kindex(list-rows-first, completion style) kindex(list-rows-first, completion style)
item(tt(list-rows-first))( item(tt(list-rows-first))(
@ -2665,7 +2665,7 @@ most commands.
) )
kindex(urls, completion style) kindex(urls, completion style)
item(tt(urls))( item(tt(urls))(
This is used together with the the tt(urls) tag by This is used together with the tt(urls) tag by
functions completing URLs. functions completing URLs.
If the value consists of more than one string, or if the only string If the value consists of more than one string, or if the only string

View file

@ -239,7 +239,7 @@ one more than the maximum selects the first. Unless the value of this
key ends in a space, the match is inserted as in a menu completion, key ends in a space, the match is inserted as in a menu completion,
i.e. without automatically appending a space. i.e. without automatically appending a space.
Both tt(menu) and tt(automenu) may also specify the the number of the Both tt(menu) and tt(automenu) may also specify the number of the
match to insert, given after a colon. For example, `tt(menu:2)' says match to insert, given after a colon. For example, `tt(menu:2)' says
to start menu completion, beginning with the second match. to start menu completion, beginning with the second match.

View file

@ -1333,7 +1333,7 @@ The `tt(hook_com)' keys considered are `tt(branch)' and `tt(revision)'.
They are set to the values figured out so far by var(vcs_info) and any They are set to the values figured out so far by var(vcs_info) and any
change will be used directly when the actual replacement is done. change will be used directly when the actual replacement is done.
If tt(ret) is set to to non-zero, the string in If tt(ret) is set to non-zero, the string in
tt(${hook_com[branch-replace]}) will be used unchanged as the tt(${hook_com[branch-replace]}) will be used unchanged as the
`tt(%b)' replacement in the variables set by var(vcs_info). `tt(%b)' replacement in the variables set by var(vcs_info).
) )
@ -1345,7 +1345,7 @@ The `tt(hook_com)' keys considered are `tt(hash)' and `tt(localrev)'.
They are set to the values figured out so far by var(vcs_info) and any They are set to the values figured out so far by var(vcs_info) and any
change will be used directly when the actual replacement is done. change will be used directly when the actual replacement is done.
If tt(ret) is set to to non-zero, the string in If tt(ret) is set to non-zero, the string in
tt(${hook_com[rev-replace]}) will be used unchanged as the tt(${hook_com[rev-replace]}) will be used unchanged as the
`tt(%i)' replacement in the variables set by var(vcs_info). `tt(%i)' replacement in the variables set by var(vcs_info).
) )
@ -1370,7 +1370,7 @@ so even if you changed a value to your liking you can still get the
original value in the next run. Changing the `tt(_orig)' values is original value in the next run. Changing the `tt(_orig)' values is
probably not a good idea. probably not a good idea.
If tt(ret) is set to to non-zero, the string in If tt(ret) is set to non-zero, the string in
tt(${hook_com[message]}) will be used unchanged as the message by tt(${hook_com[message]}) will be used unchanged as the message by
var(vcs_info). var(vcs_info).
) )
@ -1988,7 +1988,7 @@ See tt(insert-unicode-char) for an alternative way of inserting Unicode
characters using their hexadecimal character number. characters using their hexadecimal character number.
The set of accented characters is reasonably complete up to Unicode The set of accented characters is reasonably complete up to Unicode
character U+0180, the set of special characters less so. However, it it character U+0180, the set of special characters less so. However, it
is very sporadic from that point. Adding new characters is easy, is very sporadic from that point. Adding new characters is easy,
however; see the function tt(define-composed-chars). Please send any however; see the function tt(define-composed-chars). Please send any
additions to tt(zsh-workers@zsh.org). additions to tt(zsh-workers@zsh.org).
@ -3043,7 +3043,7 @@ tt(firefox mozilla netscape opera konqueror).
) )
item(tt(tty-browsers))( item(tt(tty-browsers))(
An array similar to tt(x-browsers), except that it gives browsers to An array similar to tt(x-browsers), except that it gives browsers to
use use when no X Window display is available. The default is use when no X Window display is available. The default is
tt(elinks links lynx). tt(elinks links lynx).
) )
item(tt(command))( item(tt(command))(

View file

@ -809,7 +809,7 @@ item(tt(@))(
In double quotes, array elements are put into separate words. In double quotes, array elements are put into separate words.
E.g., `tt("${(@)foo}")' is equivalent to `tt("${foo[@]}")' and E.g., `tt("${(@)foo}")' is equivalent to `tt("${foo[@]}")' and
`tt("${(@)foo[1,2]}")' is the same as `tt("$foo[1]" "$foo[2]")'. `tt("${(@)foo[1,2]}")' is the same as `tt("$foo[1]" "$foo[2]")'.
This is distinct from em(field splitting) by the the tt(f), tt(s) This is distinct from em(field splitting) by the tt(f), tt(s)
or tt(z) flags, which still applies within each array element. or tt(z) flags, which still applies within each array element.
) )
item(tt(A))( item(tt(A))(

View file

@ -854,7 +854,7 @@ The name of the shell function that implements a widget defined with
either tt(zle -N) or tt(zle -C). In the former case, this is the second either tt(zle -N) or tt(zle -C). In the former case, this is the second
argument to the tt(zle -N) command that defined the widget, or argument to the tt(zle -N) command that defined the widget, or
the first argument if there was no second argument. In the latter case the first argument if there was no second argument. In the latter case
this is the the third argument to the tt(zle -C) command that defined the this is the third argument to the tt(zle -C) command that defined the
widget. Read-only. widget. Read-only.
) )
vindex(WIDGETSTYLE) vindex(WIDGETSTYLE)
@ -1866,7 +1866,7 @@ executed as a shell command.
tindex(accept-line-and-down-history) tindex(accept-line-and-down-history)
item(tt(accept-line-and-down-history) (^O) (unbound) (unbound))( item(tt(accept-line-and-down-history) (^O) (unbound) (unbound))(
Execute the current line, and push the next history Execute the current line, and push the next history
event on the the buffer stack. event on the buffer stack.
) )
tindex(auto-suffix-remove) tindex(auto-suffix-remove)
item(tt(auto-suffix-remove))( item(tt(auto-suffix-remove))(
@ -2150,7 +2150,7 @@ column of the cursor in the current line.
) )
tindex(where-is) tindex(where-is)
item(tt(where-is))( item(tt(where-is))(
Read the name of an editor command and and print the listing of key Read the name of an editor command and print the listing of key
sequences that invoke the specified command. sequences that invoke the specified command.
A restricted set of editing functions is available in the A restricted set of editing functions is available in the
mini-buffer. Keys are looked up in the special mini-buffer. Keys are looked up in the special

View file

@ -271,7 +271,7 @@ Version 3.0
including further texinfo documentation updates and maintained the zsh including further texinfo documentation updates and maintained the zsh
web pages during their tenure at www.mal.com. web pages during their tenure at www.mal.com.
* Wayne Davison <wayne@clari.net> improved the the zle search functions * Wayne Davison <wayne@clari.net> improved the zle search functions
and made them 8-bit clean. Some other little bugfixes. and made them 8-bit clean. Some other little bugfixes.
* Bart Schaefer <schaefer@zsh.org> submitted several bugfixes, reported * Bart Schaefer <schaefer@zsh.org> submitted several bugfixes, reported

View file

@ -2557,7 +2557,7 @@ Fri Jul 12 17:19:02 1996 Zolt
noshortloops. If CSHJUNKIELOOPS is set accept repeat word list noshortloops. If CSHJUNKIELOOPS is set accept repeat word list
end. end.
* Doc/zshmisc.man: more precise definition the the syntax of * Doc/zshmisc.man: more precise definition the syntax of
complex commands complex commands
* Src/parse.c: the repeat word sublist syntax does not work if * Src/parse.c: the repeat word sublist syntax does not work if

View file

@ -1,7 +1,7 @@
# Parse the line passed down in the first argument as a calendar entry. # Parse the line passed down in the first argument as a calendar entry.
# Sets the values parsed into the associative array reply, consisting of: # Sets the values parsed into the associative array reply, consisting of:
# time The time as an integer (as per EPOCHSECONDS) of the (next) event. # time The time as an integer (as per EPOCHSECONDS) of the (next) event.
# text1 The text from the the line not including the date/time, but # text1 The text from the line not including the date/time, but
# including any WARN or RPT text. This is useful for rescheduling # including any WARN or RPT text. This is useful for rescheduling
# events, since the keywords need to be retained in this case. # events, since the keywords need to be retained in this case.
# warntime Any warning time (WARN keyword) as an integer, else an empty # warntime Any warning time (WARN keyword) as an integer, else an empty

View file

@ -19,7 +19,7 @@
# #
# Otherwise, invoke the line editor with the previous notes available # Otherwise, invoke the line editor with the previous notes available
# as an editor history. Two quick taps on the return/enter key finish # as an editor history. Two quick taps on the return/enter key finish
# the note, or you can use use ^X^W as usual (ZZ in vicmd mode). # the note, or you can use ^X^W as usual (ZZ in vicmd mode).
# The application is configured by three zstyles, all using the context # The application is configured by three zstyles, all using the context
# ":sticky-note". The first two styles are "notefile" and "maxnotes" # ":sticky-note". The first two styles are "notefile" and "maxnotes"

View file

@ -1,7 +1,7 @@
# Helper function for reading input from a TCP connection. # Helper function for reading input from a TCP connection.
# Actually, the input doesn't need to be a TCP connection at all, it # Actually, the input doesn't need to be a TCP connection at all, it
# is simply an input file descriptor. However, it must be contained # is simply an input file descriptor. However, it must be contained
# in ${tcp_by_fd[$TCP_SESS]}. This is set set by tcp_open, but may be # in ${tcp_by_fd[$TCP_SESS]}. This is set by tcp_open, but may be
# set by hand. (Note, however, the blocking/timeout behaviour is usually # set by hand. (Note, however, the blocking/timeout behaviour is usually
# not implemented for reading from regular files.) # not implemented for reading from regular files.)
# #

View file

@ -23,7 +23,7 @@ if [[ $(echo abcd | tail +2c) = bcd ]]; then
elif [[ $(echo abcd | tail --bytes=+2) = bcd ]]; then elif [[ $(echo abcd | tail --bytes=+2) = bcd ]]; then
tailtype=b tailtype=b
else else
print "I can't get your \`tail' to start from from arbitrary characters.\n" \ print "I can't get your \`tail' to start from arbitrary characters.\n" \
"If you know how to do this, let me know." 2>&1 "If you know how to do this, let me know." 2>&1
return 1 return 1
fi fi

View file

@ -1896,7 +1896,7 @@ cccleanuphookfn(UNUSED(Hookdef dummy), UNUSED(void *dat))
/* This adds a match to the list of matches. The string to add is given * /* This adds a match to the list of matches. The string to add is given *
* in s, the type of match is given in the global variable addwhat and * * in s, the type of match is given in the global variable addwhat and *
* the parameter t (if not NULL) is a pointer to a hash node node which * * the parameter t (if not NULL) is a pointer to a hash node which *
* may be used to give other information to this function. * * may be used to give other information to this function. *
* * * *
* addwhat contains either one of the special values (negative, see below) * * addwhat contains either one of the special values (negative, see below) *

View file

@ -470,7 +470,7 @@ historysearchbackward(char **args)
histpos++; histpos++;
/* ensure we're not on a combining character */ /* ensure we're not on a combining character */
CCRIGHTPOS(histpos); CCRIGHTPOS(histpos);
/* histpos from now on on is an index into the metafied string */ /* histpos from now on is an index into the metafied string */
srch_str = zlelineasstring(zleline, histpos, 0, NULL, NULL, 0); srch_str = zlelineasstring(zleline, histpos, 0, NULL, NULL, 0);
} }
free(line); free(line);

View file

@ -2757,7 +2757,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
* A `fake exec' is possible if we have all the following conditions: * * A `fake exec' is possible if we have all the following conditions: *
* 1) last1 flag is 1. This indicates that the current shell will not * * 1) last1 flag is 1. This indicates that the current shell will not *
* be needed after the current command. This is typically the case * * be needed after the current command. This is typically the case *
* when when the command is the last stage in a subshell, or is the * * when the command is the last stage in a subshell, or is the *
* last command after the option `-c'. * * last command after the option `-c'. *
* 2) We don't have any traps set. * * 2) We don't have any traps set. *
* 3) We don't have any files to delete. * * 3) We don't have any files to delete. *

View file

@ -303,7 +303,7 @@ ihgetc(void)
/* If the result is a bangchar which came from history or alias * /* If the result is a bangchar which came from history or alias *
* expansion, we treat it as an escaped bangchar, unless history * * expansion, we treat it as an escaped bangchar, unless history *
* is disabled. If stophist == 1 it only means that history is * * is disabled. If stophist == 1 it only means that history is *
* temporarily disabled by a !" which won't appear in in the * * temporarily disabled by a !" which won't appear in the *
* history, so we still have an escaped bang. stophist > 1 if * * history, so we still have an escaped bang. stophist > 1 if *
* history is disabled with NOBANGHIST or by someone else (e.g. * * history is disabled with NOBANGHIST or by someone else (e.g. *
* when the lexer scans single quoted text). */ * when the lexer scans single quoted text). */

View file

@ -531,7 +531,7 @@ update_job(Job jn)
/* When MONITOR is set, the foreground process runs in a different * /* When MONITOR is set, the foreground process runs in a different *
* process group from the shell, so the shell will not receive * * process group from the shell, so the shell will not receive *
* terminal signals, therefore we we pretend that the shell got * * terminal signals, therefore we pretend that the shell got *
* the signal too. */ * the signal too. */
if (inforeground == 2 && isset(MONITOR) && WIFSIGNALED(status)) { if (inforeground == 2 && isset(MONITOR) && WIFSIGNALED(status)) {
int sig = WTERMSIG(status); int sig = WTERMSIG(status);

View file

@ -1755,7 +1755,7 @@ parse_subst_string(char *s)
* additional memory should come off the heap or * additional memory should come off the heap or
* otherwise. So we cheat by copying the unquoted string * otherwise. So we cheat by copying the unquoted string
* into place, unless it's too long. That's not the * into place, unless it's too long. That's not the
* normal case, but I'm worried there are are pathological * normal case, but I'm worried there are pathological
* cases with converting metafied multibyte strings. * cases with converting metafied multibyte strings.
* If someone can prove there aren't I will be very happy. * If someone can prove there aren't I will be very happy.
*/ */

View file

@ -46,7 +46,7 @@ mod_export mnumber zero_mnumber;
/* /*
* The last value we computed: note this isn't cleared * The last value we computed: note this isn't cleared
* until the next computation, unlike unlike yyval. * until the next computation, unlike yyval.
* Everything else is saved and returned to allow recursive calls. * Everything else is saved and returned to allow recursive calls.
*/ */
/**/ /**/

View file

@ -978,7 +978,7 @@ copyparam(Param tpm, Param pm, int fakecopy)
* called from inside an associative array), we need the gets and sets * called from inside an associative array), we need the gets and sets
* functions to be useful. * functions to be useful.
* *
* In this case we assume the the saved parameter is not itself special, * In this case we assume the saved parameter is not itself special,
* so we just use the standard functions. This is also why we switch off * so we just use the standard functions. This is also why we switch off
* PM_SPECIAL. * PM_SPECIAL.
*/ */

View file

@ -1594,7 +1594,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
int arrasg = 0; int arrasg = 0;
/* /*
* The (e) flag. As we need to do extra work not quite * The (e) flag. As we need to do extra work not quite
* at the end, the effect of this is kludged in in several places. * at the end, the effect of this is kludged in several places.
*/ */
int eval = 0; int eval = 0;
/* /*
@ -2987,7 +2987,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
* TODO: again. one might naively have thought this had the * TODO: again. one might naively have thought this had the
* same sort of effect as the ${(t)...} flag and the ${+...} * same sort of effect as the ${(t)...} flag and the ${+...}
* test, although in this case we do need the value rather * test, although in this case we do need the value rather
* the the parameter, so maybe it's a bit different. * the parameter, so maybe it's a bit different.
*/ */
if (getlen) { if (getlen) {
long len = 0; long len = 0;