Skip to content

Commit

Permalink
40035: Cosmetic fixes for comments and documentation.
Browse files Browse the repository at this point in the history
Mostly fixes to doubled words.
  • Loading branch information
grimreaper authored and Peter Stephenson committed Nov 29, 2016
1 parent 32daf2a commit 110ffae
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 19 deletions.
7 changes: 5 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2016-11-29 Peter Stephenson <p.stephenson@samsung.com>

* 40035: Eitan Adler: Cosmetic fixes mostly for duplication in
comments and documentation.

* 40026: Src/Zle/zle_tricky.c: More care with redirection
completion. Fixes for completion after > in "!> ." that
should add to sanity.
Expand Down Expand Up @@ -3523,7 +3526,7 @@

2015-09-28 Barton E. Schaefer <schaefer@zsh.org>

* 36669: Src/lex.c: fix ${(z)...} of an an incomplete math
* 36669: Src/lex.c: fix ${(z)...} of an incomplete math
expression by restoring "((" at the front of the token

2015-09-28 Daniel Shahaf <d.s@daniel.shahaf.name>
Expand Down Expand Up @@ -9517,7 +9520,7 @@
2013-07-20 Peter Stephenson <p.w.stephenson@ntlworld.com>

* 31545: Src/exec.c, Src/parse.c: if FD_CLOEXEC is available,
so mark dump file file descriptors, avoiding possible
so mark dump file descriptors, avoiding possible
multiple use of file descriptors.

2013-07-19 Peter Stephenson <p.w.stephenson@ntlworld.com>
Expand Down
2 changes: 1 addition & 1 deletion Completion/Base/Utility/_arguments
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ if (( long )); then
continue
else
# Still no comment, add the previous options anyway.
# Add a ':' after the option anyways, to make the the matching of
# Add a ':' after the option anyways, to make the matching of
# the options lateron work as intended.
# It will be removed again later.
lopts+=("${^tmp[@]}":)
Expand Down
2 changes: 1 addition & 1 deletion Completion/Unix/Command/_git
Original file line number Diff line number Diff line change
Expand Up @@ -6114,7 +6114,7 @@ __git_recent_branches() {
local -aU valid_ref_names_munged=( ${"${(f)"$(_call_program valid-ref-names 'git for-each-ref --format="%(refname)" refs/heads/')"}"#refs/heads/} )

# 1. Obtain names of recently-checked-out branches from the reflog.
# 2. Remove ref names that that no longer exist from the list.
# 2. Remove ref names that no longer exist from the list.
# (We must do this because #3 would otherwise croak on them.)
__git_recent_branches__names; branches=( ${(@)reply:*valid_ref_names_munged} )

Expand Down
2 changes: 1 addition & 1 deletion Completion/Unix/Type/_zfs_dataset
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local -a type expl_type_arr rsrc rdst paths_allowed
local -a typearg datasetlist expl mlist
local expl_type

# -e takes an argument which is passed as as the "descr" argument to _wanted
# -e takes an argument which is passed as the "descr" argument to _wanted
# -p indicates that filesystem paths, not just dataset names, are allowed
# -r1 indicates that we're completing the source of a rename
# -r2 indicates that we're completing the destination of a rename
Expand Down
2 changes: 1 addition & 1 deletion Completion/Zsh/Command/_zstyle
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ while (( $#state )); do
_wanted contexts expl "$state_descr" compadd -a patterns
;;

# 'metapatterns': patterns that are are matched not against contexts, but
# 'metapatterns': patterns that are matched not against contexts, but
# against patterns.
(metapatterns)
zstyle -g patterns
Expand Down
2 changes: 1 addition & 1 deletion Completion/Zsh/Function/_zargs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local arguments eofstr pos=$((CURRENT)) numeofs=0 ret=1 cmdpos=1

#this doesn't handle '--' on the command line, only --
#it also by extension doesn't handle eofstr being the empty string
#it also also doesn't handle eofstr being -e or --eof, and everything will
#it also doesn't handle eofstr being -e or --eof, and everything will
# probably also be confused if the command at the end takes a -e, --eof= or --
eofstr=${${${${words[(r)(--eof=*|-e*)]}#--eof=}#-e}:---}
while {
Expand Down
2 changes: 1 addition & 1 deletion Doc/Zsh/builtins.yo
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ with emulations to be set to their values in tt(sh). tt(fno) then
calls tt(fni); because tt(fni) 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.

Expand Down
4 changes: 2 additions & 2 deletions Doc/Zsh/compsys.yo
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ directory mentioned in the tt(fpath) parameter, and should be autoloaded
few utility functions, arrange for all the necessary shell functions to be
autoloaded, and will then re-define all widgets that do completion to use the
new system. If you use the tt(menu-select) widget, which is part of the
tt(zsh/complist) module, you should make sure that that module is loaded
before the call to tt(compinit) so that that widget is also
tt(zsh/complist) module, you should make sure that the module is loaded
before the call to tt(compinit) so that the widget is also
re-defined. If completion styles (see below) are set up to perform
expansion as well as completion by default, and the TAB key is bound to
tt(expand-or-complete), tt(compinit) will rebind it to tt(complete-word);
Expand Down
2 changes: 1 addition & 1 deletion Doc/Zsh/contrib.yo
Original file line number Diff line number Diff line change
Expand Up @@ -3854,7 +3854,7 @@ The expression tt(<) followed (with no space) by a shell identifier
causes the value of the variable with that name to be pushed
onto the stack. var(ident) may be an integer, in which
case the previous result with that number (as shown before
the tt(>) in th standard standard tt(zcalc) prompt) is put on the stack.
the tt(>) in the standard tt(zcalc) prompt) is put on the stack.
)
item(Exchange: tt(xy))(
The pseudo-function tt(xy) causes the most recent two elements of
Expand Down
2 changes: 1 addition & 1 deletion Etc/ChangeLog-4.3
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@

2011-08-16 Wayne Davison <wayned@users.sourceforge.net>

* 29650: Src/jobs.c: don't lose the the time info after a
* 29650: Src/jobs.c: don't lose the time info after a
suspend+restore.

2011-08-15 Peter Stephenson <p.w.stephenson@ntlworld.com>
Expand Down
2 changes: 1 addition & 1 deletion Src/Zle/zle_refresh.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ addmultiword(REFRESH_ELEMENT *base, ZLE_STRING_T tptr, int ichars)

/*
* Swap the old and new video buffers, plus any associated multiword
* buffers. The new buffer becomes the old one; the new new buffer
* buffers. The new buffer becomes the old one; the new buffer
* will be filled with the command line next time.
*/
static void
Expand Down
2 changes: 1 addition & 1 deletion Src/glob.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ checkglobqual(char *str, int sl, int nobareglob, char **sp)
}

/* Main entry point to the globbing code for filename globbing. *
* np points to a node in the list list which will be expanded *
* np points to a node in the list which will be expanded *
* into a series of nodes. */

/**/
Expand Down
2 changes: 1 addition & 1 deletion Src/hist.c
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ hbegin(int dohist)
/*
* pws: We used to test for "|| (inbufflags & INP_ALIAS)"
* in this test, but at this point we don't have input
* set up up so this can trigger unnecessarily.
* set up so this can trigger unnecessarily.
* I don't see how the test at this point could ever be
* useful, since we only get here when we're initialising
* the history mechanism, before we've done any input.
Expand Down
2 changes: 1 addition & 1 deletion Src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* Note that the input string is itself used as the input buffer: it is not
* copied, nor is it every written back to, so using a constant string
* should work. Consequently, when passing areas of memory from the heap
* it is necessary that that heap last as long as the operation of reading
* it is necessary that the heap last as long as the operation of reading
* the string. After the string is read, the stack should be popped with
* inpop(), which effectively flushes any unread input as well as restoring
* the previous input state.
Expand Down
2 changes: 1 addition & 1 deletion Src/subst.c
Original file line number Diff line number Diff line change
Expand Up @@ -2368,7 +2368,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int pf_flags,
* This is the inner handling for the case referred to above
* where we have something like ${${(P)name}...}.
*
* Treat this as as a normal value here; all transformations on
* Treat this as a normal value here; all transformations on
* result are in outer instance.
*/
aspar = 0;
Expand Down
2 changes: 1 addition & 1 deletion Src/zsh.h
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,7 @@ struct zpc_disables_save {
/*
* Bit vector of ZPC_COUNT disabled characters.
* We'll live dangerously and assumed ZPC_COUNT is no greater
* than the number of bits an an unsigned int.
* than the number of bits an unsigned int.
*/
unsigned int disables;
};
Expand Down
2 changes: 1 addition & 1 deletion Util/helpfiles
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# This script is called automatically during `make install'
# unless specified otherwise.

# For usage and and more information see zshcontrib(1).
# For usage and more information see zshcontrib(1).

sub Usage {
print(STDERR "Usage: helpfiles zshbuiltins.1 dest-dir [link-file]\n");
Expand Down

0 comments on commit 110ffae

Please sign in to comment.