1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

45004: Fix typos in comments

This commit is contained in:
Martijn Dekker 2019-12-10 20:41:08 +01:00 committed by Daniel Shahaf
parent d81238ee95
commit c578f0a08b
29 changed files with 65 additions and 56 deletions

View file

@ -129,7 +129,7 @@
setopt ALIAS_FUNC_DEF
eval 'goodalias() { print does now work; }'
isafunc)
0:ALIAS_FUNC_DEF causes the icky behaviour to be avaliable
0:ALIAS_FUNC_DEF causes the icky behaviour to be available
>does now work
(alias thisisokthough='thisworks() { print That worked; }'

View file

@ -386,7 +386,7 @@
esac)
print after case in subshell)
'
0:Non-arithmetic subst with command subsitution parse from hell
0:Non-arithmetic subst with command substitution parse from hell
>yes, this one after case in subshell
print "a$((echo one subst)

View file

@ -388,7 +388,7 @@ F:Failures in these cases do not indicate a problem in the shell.
eval test $w
print $?
done
0:test compatability weirdness: treat ! as a string sometimes
0:test compatibility weirdness: treat ! as a string sometimes
>0
>0
>1

View file

@ -26,7 +26,7 @@
>SEcond ViErtE
diff =(cat FILE1) =(cat FILE2)
1:=(...) substituion
1:=(...) substitution
>1c1
>< First Second Third Fourth
>---

View file

@ -190,7 +190,7 @@
typeset -ga empty
echo X${${empty##*}[-1]}X
0:Negative index applied to substition result from empty array
0:Negative index applied to substitution result from empty array
>XX
print $empty[(i)] $empty[(I)]
@ -221,7 +221,7 @@
>fimble two three four
print X$array[(R)notfound]X
0:(R) yuckily returns the first element on failure withe KSH_ZERO_SUBSCRIPT
0:(R) yuckily returns the first element on failure with KSH_ZERO_SUBSCRIPT
>XfimbleX
unsetopt KSH_ZERO_SUBSCRIPT

View file

@ -174,6 +174,6 @@
eval '{ OPEN print hi; CLOSE }
var=$({ OPEN print bye; CLOSE}) && print $var'
)
0:Alias expansion needed in parsing substituions
0:Alias expansion needed in parsing substitutions
>hi
>bye

View file

@ -850,7 +850,7 @@
# With non-special command: original value restored
# With special builtin: new value kept
# With special builtin preceeded by "command": original value restored.
# With special builtin preceded by "command": original value restored.
(setopt posixbuiltins
FOO=val0
FOO=val1 true; echo $FOO

View file

@ -104,7 +104,7 @@
private -h path
print X$path
}
0:privates may hide tied paramters
0:privates may hide tied parameters
>X
# Deliberate type mismatch here