| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
% make -s check
./B08shift.ztst: starting.
*** /tmp/zsh.ztst.out.20779 Sun Dec 13 16:15:26 2015
--- /tmp/zsh.ztst.tout.20779 Sun Dec 13 16:15:26 2015
***************
*** 1,4 ****
! tether mether pip azer sezar akker conter dick
! mether pip azer sezar akker conter dick
! mether pip azer sezar
! mether pip azer
--- 1,4 ----
! yan tan tether mether pip azer sezar akker conter dick
! yan tan tether mether pip azer sezar akker conter dick
! yan tan tether mether pip azer sezar akker conter dick
! yan tan tether mether pip azer sezar akker conter dick
Test ./B08shift.ztst failed: output differs from expected as shown above for:
array=(yan tan tether mether pip azer sezar akker conter dick)
shift 2 array
print $array
shift array
print $array
shift -p 3 array
print $array
shift -p array
print $array
Error output:
(eval):shift:2: shift count must be <= $#
(eval):shift:4: shift count must be <= $#
(eval):shift:6: shift count must be <= $#
(eval):shift:8: shift count must be <= $#
Was testing: shifting array
./B08shift.ztst: test failed.
./D04parameter.ztst: starting.
*** /tmp/zsh.ztst.out.22016 Sun Dec 13 16:15:49 2015
--- /tmp/zsh.ztst.tout.22016 Sun Dec 13 16:15:49 2015
***************
*** 1,10 ****
! a 1 b 2 c 3
! a 1 b 2 c 3
! a 1 b 2
! a 1 b 2 c 1 d 2
! a a b
! 1
! a a
! 1
! b
! 2 2
--- 1,6 ----
!
! a b c
!
! a b c d
!
!
Test ./D04parameter.ztst failed: output differs from expected as shown above for:
foo=(a b c)
bar=(1 2 3)
print ${foo:^bar}
print ${foo:^^bar}
foo=(a b c d)
bar=(1 2)
print ${foo:^bar}
print ${foo:^^bar}
foo=('a a' b)
bar=(1 '2 2')
print -l "${foo:^bar}"
print -l "${(@)foo:^bar}"
Was testing: Zipping arrays, correct output
./D04parameter.ztst: test failed.
./X02zlevi.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./X03zlebindkey.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./Y01completion.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./Y02compmatch.ztst: starting.
comptesteval:6: fatal error: out of heap memory
./Y03arguments.ztst: starting.
comptesteval:6: fatal error: out of heap memory
**************************************
41 successful test scripts, 7 failures, 0 skipped
**************************************
|
| |
| |
| |
| |
| |
| | |
Changes from Mikael's bcf975a2ea3ebc6ba1ed8150b376bef45e527cda:
- paramsubst: Change setting of 'ziplen'
|
| |
| |
| |
| |
| |
| | |
When startying in sh emulation don't link PATH-style parameters
to array equivalents. To allow this to function, don't check
for the linkage when exporting the colon-separated parameter.
|
| |
| |
| |
| | |
Otherwise they can terminate in the middle of an expression.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
behaviour.
To reproduce:
RPS1=foo
ZLE_RPROMPT_INDENT=42
unset ZLE_RPROMPT_INDENT
|
| | |
|
| |
| |
| |
| |
| | |
This because they are created implicitly rather than by explicit
user request, so the warning may not be useful.
|
| |
| |
| |
| | |
array
|
| | |
|
| |
| |
| |
| |
| | |
Converting type when using a calling scope was broken in the
original patch.
|
| |
| |
| |
| |
| | |
No warning needed on paramter that's created temporarily to
help assignment.
|
| |
| |
| |
| |
| | |
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The incumbent code would print an error message and continue execution
with the previous uid/gid values, not even setting lastval:
% UID=42 id -u; echo $?
zsh: failed to change user ID: operation not permitted
1000
0
%
|
| |
| |
| |
| | |
unsetparam_pm(), and getindex().
|
| |
| |
| |
| |
| |
| | |
array parameter
unposted: README: example describing 40032
|
| |
| |
| |
| | |
Although this is a colon-separated array there is no tied array.
|
| |
| |
| |
| |
| | |
If setter is the standard one and string length is unchnaged we can
copy into place.
|
| |
| |
| |
| |
| | |
No memory was lost; the array was allocated with room for one (char *) element
more than was required.
|
| |
| |
| |
| | |
$a[i,j] should become an empty array if i>j.
|
| |
| |
| |
| | |
no functional change
|
| | |
|
| | |
|
| |
| |
| |
| | |
Only duplicate as much of the array as is needed.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
export
39704 was commit 0f5e670, forgot to reference article number in that log.
"typeset -p" outputs "typeset" for array and hash parameters, even when
exported, because those types can be marked export but are never pushed
to the enviroment.
For POSIXBUILTINS, "export var" does not implicitly set $var, and its
export state is preserved when assigned (but not when explicitly unset).
|
| |
| |
| |
| | |
are not local to the current scope
|
| |
| |
| |
| | |
All of these are added simply to fit existing logic in other branches.
|
| |
| |
| |
| | |
This was missing when exporting using USE_SET_UNSET_ENV coce variant.
|
| | |
|
| |
| |
| |
| |
| |
| | |
params.c:830:13: warning: expression which evaluates to zero treated as a null
pointer constant of type 'char *' [-Wnon-literal-null-conversion]
*envp = '\0';
|
| |
| |
| |
| |
| | |
There was an exploit in bash using SHELLOPTS to turn on xtrace,
however this can't happen in zsh, so this is simply a precaution.
|
| |
| |
| |
| | |
are set
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
% () { for 1 in $prefix/zsh/bin/zsh Src/zsh; do $1 -f -c 'a=( {1..1000000} ); repeat 3 time ( repeat 300 : $a[1] )'; done }
( repeat 300; do; : $a[1]; done; ) 1.68s user 0.01s system 98% cpu 1.718 total
( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.710 total
( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.714 total
( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total
( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total
( repeat 300; do; : $a[1]; done; ) 0.01s user 0.01s system 69% cpu 0.023 total
|
| | |
|
|/ |
|
|
|
|
|
|
| |
$ZSH_SCRIPT
(also a couple of ChangeLog typos corrected -- Bart)
|