Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] more doubles



Realized I should just search for any doubled word instead of trying to
think up examples. I hope nobody minds I didn't reflow comments. :)

(Patches like these are easier to review with git diff --color-words.)

---
 Completion/BSD/Command/_bsd_pkg   |    2 +-
 Completion/Unix/Command/_git      |    2 +-
 Completion/Unix/Command/_perforce |    2 +-
 Doc/Zsh/builtins.yo               |    4 ++--
 Doc/Zsh/compctl.yo                |    2 +-
 Doc/Zsh/contrib.yo                |   10 +++++-----
 Doc/Zsh/zle.yo                    |    2 +-
 Functions/Misc/sticky-note        |    2 +-
 Functions/TCP/tcp_read            |    2 +-
 Functions/Zftp/zfcput             |    2 +-
 Src/Zle/compctl.c                 |    2 +-
 Src/Zle/zle_hist.c                |    2 +-
 Src/exec.c                        |    2 +-
 Src/hist.c                        |    2 +-
 Src/jobs.c                        |    2 +-
 Src/lex.c                         |    2 +-
 Src/math.c                        |    2 +-
 Src/subst.c                       |    2 +-
 18 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/Completion/BSD/Command/_bsd_pkg b/Completion/BSD/Command/_bsd_pkg
index 8cc1a62..9f4b0f1 100644
--- a/Completion/BSD/Command/_bsd_pkg
+++ b/Completion/BSD/Command/_bsd_pkg
@@ -178,7 +178,7 @@ _bsd_pkg() {
       '-m[show mtree files]'
       '-p[show installation prefixes]'
       '-q[be quiet]'
-      '-R[show list list of installed requiring packages]'
+      '-R[show list of installed requiring packages]'
       '-r[show requirements scripts]'
       '-v[be verbose]'
     )
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 76bdb1b..d10700d 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -131,7 +131,7 @@ _git-archive () {
     '--format=-[format of the resulting archive]:archive format:__git_archive_formats' \
     '(- :)'{-l,--list}'[list available archive formats]' \
     '(-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' \
     '--worktree-attributes[look for attributes in .gitattributes in working directory too]' \
     $backend_args \
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index 0cef1f7..08c42cb 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -2605,7 +2605,7 @@ _perforce_cmd_tickets() {
 _perforce_cmd_triggers() {
   _arguments -s : \
     '-o[output form to stdout]' \
-    '-i[read from from stdin]'
+    '-i[read from stdin]'
 }
 
 
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 34150e3..92b677f 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -406,7 +406,7 @@ with emulations to be set to their values in tt(sh).  tt(fni) then
 calls tt(fno); because tt(fno) is also marked for sticky tt(sh)
 emulation, no option changes take place on entry to or exit from it.
 Hence the option tt(cshnullglob), turned off by tt(sh) emulation, will
-be turned on within tt(fni) and remain on on return to tt(fno).  On exit
+be turned on within tt(fni) and remain on return to tt(fno).  On exit
 from tt(fno), the emulation mode and all options will be restored to the
 state they were in before entry to the temporary emulation.
 
@@ -621,7 +621,7 @@ ifnzman(noderef(Arithmetic Evaluation))\
 .  By default var(mathfn) may take
 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
-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.
 
 By default the function is implemented by a shell function of the same
diff --git a/Doc/Zsh/compctl.yo b/Doc/Zsh/compctl.yo
index 2c84f85..fa13a74 100644
--- a/Doc/Zsh/compctl.yo
+++ b/Doc/Zsh/compctl.yo
@@ -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.
 
 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*')
 arranges for completion of the words of any command beginning with
 tt(foo).  When completion is attempted, all pattern completions are
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 31f4194..cf42e28 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -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
 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(%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
 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(%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
 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
 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.
 
 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,
 however; see the function tt(define-composed-chars).  Please send any
 additions to tt(zsh-workers@xxxxxxx).
@@ -3043,7 +3043,7 @@ tt(firefox mozilla netscape opera konqueror).
 )
 item(tt(tty-browsers))(
 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).
 )
 item(tt(command))(
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index 9424ed0..f40ffee 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -2155,7 +2155,7 @@ column of the cursor in the current line.
 )
 tindex(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.
 A restricted set of editing functions is available in the
 mini-buffer.  Keys are looked up in the special
diff --git a/Functions/Misc/sticky-note b/Functions/Misc/sticky-note
index cfe9ea6..efe5ec1 100644
--- a/Functions/Misc/sticky-note
+++ b/Functions/Misc/sticky-note
@@ -19,7 +19,7 @@
 #
 # Otherwise, invoke the line editor with the previous notes available
 # 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
 # ":sticky-note".  The first two styles are "notefile" and "maxnotes"
diff --git a/Functions/TCP/tcp_read b/Functions/TCP/tcp_read
index 7d8acf8..f880395 100644
--- a/Functions/TCP/tcp_read
+++ b/Functions/TCP/tcp_read
@@ -1,7 +1,7 @@
 # Helper function for reading input from a TCP connection.
 # 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
-# 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
 # not implemented for reading from regular files.)
 #
diff --git a/Functions/Zftp/zfcput b/Functions/Zftp/zfcput
index d8a8a60..85141b6 100644
--- a/Functions/Zftp/zfcput
+++ b/Functions/Zftp/zfcput
@@ -23,7 +23,7 @@ if [[ $(echo abcd | tail +2c) = bcd ]]; then
 elif [[ $(echo abcd | tail --bytes=+2) = bcd ]]; then
   tailtype=b
 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
   return 1
 fi
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index 502cec3..1d2506c 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -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   *
  * 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.                 *
  *                                                                         *
  * addwhat contains either one of the special values (negative, see below) *
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index 51d8667..c795371 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -470,7 +470,7 @@ historysearchbackward(char **args)
 		histpos++;
 	    /* ensure we're not on a combining character */
 	    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);
 	}
 	free(line);
diff --git a/Src/exec.c b/Src/exec.c
index 8fd32d9..affece9 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2761,7 +2761,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
      * 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    *
      *    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'.                                 *
      * 2) We don't have any traps set.                                        *
      * 3) We don't have any files to delete.                                  *
diff --git a/Src/hist.c b/Src/hist.c
index 8c81503..a058ed0 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -303,7 +303,7 @@ ihgetc(void)
 	/* If the result is a bangchar which came from history or alias  *
 	 * expansion, we treat it as an escaped bangchar, unless history *
 	 * 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 is disabled with NOBANGHIST or by someone else (e.g.  *
 	 * when the lexer scans single quoted text).                     */
diff --git a/Src/jobs.c b/Src/jobs.c
index 951f06d..b3ec000 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -531,7 +531,7 @@ update_job(Job jn)
 
     /* When MONITOR is set, the foreground process runs in a different *
      * 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.                                                 */
     if (inforeground == 2 && isset(MONITOR) && WIFSIGNALED(status)) {
 	int sig = WTERMSIG(status);
diff --git a/Src/lex.c b/Src/lex.c
index f4b2237..fdd05ef 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1755,7 +1755,7 @@ parse_subst_string(char *s)
 	     * additional memory should come off the heap or
 	     * otherwise.  So we cheat by copying the unquoted string
 	     * 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.
 	     * If someone can prove there aren't I will be very happy.
 	     */
diff --git a/Src/math.c b/Src/math.c
index 7efc184..e02a6d1 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -46,7 +46,7 @@ mod_export mnumber zero_mnumber;
 
 /*
  * 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.
  */
 /**/
diff --git a/Src/subst.c b/Src/subst.c
index 3f75dfd..4db8457 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1594,7 +1594,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
     int arrasg = 0;
     /*
      * 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;
     /*
-- 
1.7.4-rc1



Messages sorted by: Reverse Date, Date, Thread, Author