1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-04-28 12:55:19 +02:00

github #82: Fix typos

This commit is contained in:
Dimitris Apostolou 2021-11-12 23:33:37 +02:00 committed by Oliver Kiddle
parent c7f4634549
commit 356dcb20ce
21 changed files with 37 additions and 26 deletions

View File

@ -1,5 +1,16 @@
2021-11-12 Oliver Kiddle <opk@zsh.org>
* github #82: Dimitris Apostolou: Completion/BSD/Command/_kdump,
Completion/Redhat/Command/_dnf, Completion/BSD/Command/_ktrace,
Completion/Linux/Command/_modutils, Test/A01grammar.ztst,
Completion/Linux/Command/_sysstat, Functions/Chpwd/cdr,
Completion/Unix/Command/_ansible, Completion/Unix/Command/_gcc,
Completion/Mandriva/Command/_urpmi, Etc/NEWS-4.3,
Completion/Debian/Command/_aptitude, Etc/FAQ.yo,
Functions/Newuser/zsh-newuser-install, NEWS,
Functions/Misc/regexp-replace, Src/Zle/compmatch.c,
Src/exec.c, Src/math.c, Test/B12limit.ztst: fix typos
* Marlon: 49572: Completion/Base/Completer/_expand,
Test/Y01completion.ztst: Let _expand preserve array form w/out
zstyle glob

View File

@ -30,7 +30,7 @@ local args=(
'-f+[use the specified file (- for stdin)]:dump file:_files'
'-l[loop reading the trace file]'
'-m+[maximum I/O bytes to display]:max data bytes:'
'-n[supress ad hoc translations]'
'-n[suppress ad hoc translations]'
'-p+[show output only for the specified pid]: :_kdump_pid'
'(-E -T)-R[display relative timestamps]'
'(-E -R )-T[display absolute timestamps]'

View File

@ -4,7 +4,7 @@ local args=(
'-a[append to the trace file]'
'(*)-C[disable tracing on all user owned processes or all processes if executed by root]'
'-c[clear the trace points]'
'-d[trace current decendants]'
'-d[trace current descendants]'
'-f+[log trace to specified file]:trace file:_files'
'(-p *)-g+[enable/disable tracing on specified process group]:pgid:_pgids'
'-i[inherit trace flags on future children]'

View File

@ -15,7 +15,7 @@ _arguments -C \
'(-F --display-format)'{-F,--display-format}'[specify output format for search command]:format:->format-strings' \
'--group-by=[control how the versions command groups its output]:grouping:(archive auto none package source-package source-version)' \
'--log-file=[specify output log file]:file:_files' \
'*--log-level=[specify mimimum message level to log]:level:compadd -o nosort off fatal error warn info debug trace' \
'*--log-level=[specify minimum message level to log]:level:compadd -o nosort off fatal error warn info debug trace' \
'--log-resolver[set some standard log levels related to the resolver]' \
'(--allow-new-installs)--no-new-installs[prevent safe-upgrade from installing any new packages]' \
'(--allow-new-upgrades)--no-new-upgrades[prevent safe-upgrade from upgrading packages regardless]' \

View File

@ -105,7 +105,7 @@ _modutils() {
loaded-modules|loadable-modules)
if [[ -r /proc/modules ]]; then
loaded_modules=(${${(f)"$(</proc/modules)"}%% *})
# For compatibilty with old systems. Kernels nowadays provide
# For compatibility with old systems. Kernels nowadays provide
# `/proc/modules` which is more reliable and faster for us.
elif [[ -x /sbin/lsmod ]]; then
loaded_modules=(${${(f)"$(_call_program loaded-modules /sbin/lsmod)"}[2,-1]%% *})

View File

@ -52,7 +52,7 @@ _sadf() {
'(-g -j -p -r -x)-h[print on a single line when used with -d]' \
'-O[specify output options]: : _values -s , option
autoscale bwcol customcol height\:value oneday packed showidle showinfo showtoc skipempty hz\:value pcparchive\:name\:_files debug' \
'-P[restrict processor dependant statistics]:processor number(zero indexed) or ALL:(ALL)' \
'-P[restrict processor dependent statistics]:processor number(zero indexed) or ALL:(ALL)' \
'--dev=-[specify block devices for which statistics are to be displayed]:block device:_files -g "*(-%)"' \
'--fs=-[specify filesystems for which statistics are to be displayed]:file system:_dir_list -s ,' \
'--iface=-[specify network interfaces for which statistics are to be displayed]:network interface:_sequence _net_interfaces' \

View File

@ -131,7 +131,7 @@ _urpmi() {
"($help --no-probe --probe-hdlist)--probe-synthesis[try to find and use synthesis file]" \
"($help)--update[mark as update media]" \
"($help)--version[use specified distribution version]:Mandrake version: " \
"($help)--virtual[create virtual media wich are always up-to-date]" \
"($help)--virtual[create virtual media which are always up-to-date]" \
"($help)-c[clean headers cache directory]" \
"($help)-f[force generation of hdlist files]" \
"($help --distrib):name of media: " \

View File

@ -345,7 +345,7 @@ _dnf_command() {
;;
clean)
tmp=(
'dbcache:remove chache files generated from the repository metadata'
'dbcache:remove cache files generated from the repository metadata'
'expire-cache:mark the repository metadata expired'
'metadata:remove the repository metadata'
'packages:remove any cached packages'

View File

@ -358,7 +358,7 @@ case $state in
'(-p --collections-path)'{-p+,--collections-path=}'[specify directory containing collections]:_directories'
'(-r --requirements-file *)'{-r+,--requirements-file=}'[specify file containing a list of collections to install]:file:_files'
'--pre[include pre-release versions]'
'*:collecion name:_files'
'*:collection name:_files'
)
;;
esac

View File

@ -957,10 +957,10 @@ if [[ "$service" = clang* ]]; then
'-fveclib=[use the given vector functions library]:arg'
'-fvectorize[enable the loop vectorization passes]'
'-fvirtual-function-elimination[enables dead virtual function elimination optimization]'
'-fvisibility-dllexport=[the visibility for dllexport defintions]:arg'
'-fvisibility-dllexport=[the visibility for dllexport definitions]:arg'
'-fvisibility-externs-dllimport=[the visibility for dllimport external declarations]:arg'
'-fvisibility-externs-nodllstorageclass=[the visibility for external declarations without an explicit DLL dllstorageclass]:arg'
'-fvisibility-from-dllstorageclass[set the visiblity of symbols in the generated code from their DLL storage class]'
'-fvisibility-from-dllstorageclass[set the visibility of symbols in the generated code from their DLL storage class]'
'-fvisibility-global-new-delete-hidden[give global C++ operator new and delete declarations hidden visibility]'
'-fvisibility-inlines-hidden[give inline C++ member functions hidden visibility by default]'
'-fvisibility-inlines-hidden-static-local-var[visibility inlines hidden static local var]'

View File

@ -333,7 +333,7 @@ sect(What's the latest version?)
Changes of this kind are almost always forced by an awkward or
unnecessary feature in the original design (as perceived by current
users), or to enhance compatibility with other Bourne shell
derivatives, or (mostly in the 3.0 series) to provide POSIX compliancy.
derivatives, or (mostly in the 3.0 series) to provide POSIX compliance.
sect(Where do I get it?)
@ -871,7 +871,7 @@ label(25)
the most obvious difference from zsh is that it does not attempt to
emulate the Korn shell. Since both shells are under active
development it is probably not sensible to be too specific here.
Broadly, bash has paid more attention to standards compliancy
Broadly, bash has paid more attention to standards compliance
(i.e. POSIX) for longer, and has so far avoided the more abstruse
interactive features (programmable completion, etc.) that zsh has.

View File

@ -139,7 +139,7 @@ The new shell option POSIX_CD, active in emulations of POSIX-based shells,
makes the cd builtin POSIX-compatible.
The POSIX_JOBS option already referred to has various other
compatibility enchancements.
compatibility enhancements.
The new shell option POSIX_STRINGS makes a null character in $'...'
expansion terminate the string, as is already the case in bash. This is

View File

@ -55,7 +55,7 @@
# pattern from the directory list. The match is against the fully
# expanded directory path and the full string must match (use wildcards
# at the ends if needed). If output is going to a terminal, the
# function will print the new list for the user to confrim; this can be
# function will print the new list for the user to confirm; this can be
# skipped by giving -P instead of -p.
#
# Details of directory handling

View File

@ -40,7 +40,7 @@ if (( $4 )); then
# append offsets and computed replacement to the array
# we need to perform the evaluation in a scalar assignment so that if
# it generates an array, the elements are converted to string (by
# joining with the first chararacter of $IFS as usual)
# joining with the first character of $IFS as usual)
5=${(e)3}
argv+=(${(s: :)ZPCRE_OP} "$5")

View File

@ -627,7 +627,7 @@ Type:
}
# Print and despatch a submenu.
# Print and dispatch a submenu.
# The first argument is the title. The remaining arguments
# are pairs of descriptions and functions to execute.
# There shouldn't be more than 9 entries.

2
NEWS
View File

@ -571,7 +571,7 @@ Here is a summary of the most significant changes:
- The zshroadmap manual page provides a slightly more helpful
introduction to the shell manual than was previously available.
- There have been some notable enhancements to POSIX comptability
- There have been some notable enhancements to POSIX compatibility
when the shell is in a corresponding emulation (e.g. "emulate sh").
Expansion (parameters, globbing, etc.) and redirection

View File

@ -1438,7 +1438,7 @@ pattern_match_restrict(Cpattern p, Cpattern wp, convchar_t *wsc, int wsclen,
/*
* If either is "?", they match each other; no further tests.
* Apply this even if the character wasn't convertable;
* Apply this even if the character wasn't convertible;
* there's no point trying to be clever in that case.
*/
if (p->tp != CPAT_ANY || wp->tp != CPAT_ANY)
@ -1496,7 +1496,7 @@ pattern_match_restrict(Cpattern p, Cpattern wp, convchar_t *wsc, int wsclen,
* characters. We're matching two patterns against
* one another to generate a character to insert.
* This is a bit too psychedelic, so I'm going to
* bale out now. See you on the ground.
* bail out now. See you on the ground.
*/
return 0;
}
@ -1564,7 +1564,7 @@ pattern_match(Cpattern p, char *s, Cpattern wp, char *ws)
c = unmeta_one(s, &len);
/*
* If either is "?", they match each other; no further tests.
* Apply this even if the character wasn't convertable;
* Apply this even if the character wasn't convertible;
* there's no point trying to be clever in that case.
*/
if (p->tp != CPAT_ANY || wp->tp != CPAT_ANY)
@ -1934,7 +1934,7 @@ bld_line(Cmatcher mp, ZLE_STRING_T line, char *mword, char *word,
* This is the nightmare case: we have line and
* and word matchers and some pattern which restricts
* the value on the line without us knowing exactly
* what it is. Despatch to the special function
* what it is. Dispatch to the special function
* for that.
*/
if (mp && !mp->flags && mp->wlen <= wlen &&

View File

@ -3954,7 +3954,7 @@ execcmd_exec(Estate state, Execcmd_params eparams,
if (type == WC_AUTOFN) {
/*
* We pre-loaded this to get any redirs.
* So we execuate a simplified function here.
* So we execute a simplified function here.
*/
lastval = execautofn_basic(state, do_exec);
} else

View File

@ -162,7 +162,7 @@ static int unary = 1;
#define TOKCOUNT 53
/*
* Opeator recedences: in reverse order, i.e. lower number, high precedence.
* Operator precedences: in reverse order, i.e. lower number, high precedence.
* These are the C precedences.
*
* 0 Non-operators: NUM (numeric constant), ID (identifier),
@ -219,7 +219,7 @@ static int c_prec[TOKCOUNT] =
};
/*
* Opeator recedences: in reverse order, i.e. lower number, high precedence.
* Operator precedences: in reverse order, i.e. lower number, high precedence.
* These are the default zsh precedences.
*
* 0 Non-operators: NUM (numeric constant), ID (identifier),

View File

@ -922,7 +922,7 @@ F:Note that the behaviour of 'exit' inside try-list inside a function is unspeci
x=1
x=2 | echo $x
echo $x
0:Assignment-only current shell commands in LHS of pipelin
0:Assignment-only current shell commands in LHS of pipeline
>1
>1

View File

@ -11,7 +11,7 @@
%test
limit | grep UNKNOWN || print OK
0:Check if there is unknown resouce(s) in the system
0:Check if there is unknown resource(s) in the system
>OK
F:A failure here does not indicate any error in zsh. It just means there
F:is a resource in your system that is unknown to zsh developers. Please