1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-20 16:01:04 +02:00
Commit graph

576 commits

Author SHA1 Message Date
Peter Stephenson
ad29258c8c 29530: ${...?...} shouldn't cause an error with NO_EXEC option 2011-07-01 15:23:01 +00:00
Peter Stephenson
6062529d3f 29492: add argument handling to anonymous functions 2011-06-19 20:12:00 +00:00
Peter Stephenson
22af58bf2b 29451: ${##stuff} removes stuff from the head of $# 2011-06-03 22:03:43 +00:00
Mikael Magnusson
16324d2ff3 29422: fix g:: test failing in some locales 2011-06-03 20:55:40 +00:00
Bart Schaefer
b4ce09f88d 29410: skip autoload persistence test when zsh/example is not available. 2011-05-31 16:01:38 +00:00
Bart Schaefer
7b735f1c56 29367: update tests redirection of stderr. 2011-05-24 15:49:57 +00:00
Mikael Magnusson
0198b8423d 29224: Support negative LEN in ${VAR:OFFSET:LEN} like bash. 2011-05-19 16:24:38 +00:00
Mikael Magnusson
6a29bc80d0 29261: Add g:: flag. 2011-05-19 16:16:28 +00:00
Peter Stephenson
23a057a4fa unposted (late commit): updates for 4.3.11-dev-3 2011-05-13 11:56:40 +00:00
Peter Stephenson
2e25dfb8fd Rocky Bernstein: 29135 (plus tweaks): compgen -W in bash completion 2011-05-04 08:53:53 +00:00
Bart Schaefer
e349201f9a 29025: Test/A01grammar.ztst: in select test, assert LINES=3 to print list 2011-04-22 06:00:27 +00:00
Peter Stephenson
4263d2b821 28889: ${##} should return the length of $# 2011-03-11 21:05:59 +00:00
Peter Stephenson
7bc97b920b 28866: with POSIX_BUILTINS "command" prefix resets specialness 2011-03-06 21:37:38 +00:00
Peter Stephenson
dbbcbf67cb 28791: exit on errors with special builtins with POSIXBUILTINS 2011-02-22 20:09:20 +00:00
Peter Stephenson
73ebca4fe9 28783: allow parentheses to be special in more places with SH_GLOB 2011-02-21 11:32:47 +00:00
Peter Stephenson
0e792b9447 28784: exit on exec redirection error with POISX_BUILTINS 2011-02-21 11:28:49 +00:00
Peter Stephenson
aa58d139ff Mikael: 28637: ${foo:0:} caused crash 2011-01-18 10:29:58 +00:00
Peter Stephenson
4f9ee790e0 28630: Ricky Zhou: fix crash with isident()
28634: add test
2011-01-16 20:35:29 +00:00
Peter Stephenson
dfc26195c9 28617: NO_EXEC option was doing too much work in
parameter subscripting, parameter assignment, and globbing
2011-01-10 18:24:17 +00:00
Peter Stephenson
a89f0559c2 28590: make read return status non-zero on error 2011-01-07 10:05:35 +00:00
Peter Stephenson
020e116c54 28588: fix textual display after =~ test 2011-01-06 20:28:50 +00:00
Bart Schaefer
87d6527628 28578: fix handling of numeric escapes that expand to "%" in printf
format strings, so they are not treated as format introducers.
2011-01-06 16:49:25 +00:00
Bart Schaefer
bc1a12f91e users/15662: array slice assignment with one index positive and one negative. 2010-12-21 16:54:30 +00:00
Peter Stephenson
d3ec328926 users/15663: some incomplete array assignment tests 2010-12-21 11:00:14 +00:00
Peter Stephenson
c8d07027c8 28537: fix word splitting on "((" when it was nested subshells rather than
arithmetic
2010-12-19 17:42:09 +00:00
Bart Schaefer
66152e8ada 28530: replace (z+opts+) flag with (Z:opts:), add reserved (_🎏). 2010-12-15 04:05:50 +00:00
Peter Stephenson
eab4f9a83c 28528: Rearrange zleparse to lexflags
Add (z+n+)
2010-12-14 09:59:04 +00:00
Peter Stephenson
5858e79f4d 28526: remove bogus newline with stripped comment zplitting 2010-12-13 11:20:46 +00:00
Peter Stephenson
0a5702457b 28510: add (z+c+) and (z+C+) parameter flags 2010-12-12 22:44:50 +00:00
Peter Stephenson
25b12c5d11 28474, 28478: extended {START..END..STEP} syntax 2010-12-05 21:07:48 +00:00
Peter Stephenson
cee3f34378 28476: new set of tests for brace expansion 2010-12-05 18:34:46 +00:00
Peter Stephenson
0f1fd5b91f 28475: test that starting background job resets status 2010-12-05 18:33:07 +00:00
Peter Stephenson
fc6c76519b 28434: make ${NAME:OFFSET} always use zero-offset 2010-11-25 10:34:32 +00:00
Peter Stephenson
cc9bc2dd0b 28424: new POSIX_STRINGS option 2010-11-22 11:42:47 +00:00
Peter Stephenson
8f20b2361c 28419: Doc/Zsh/expn.yo, Src/subst.c, Test/D04parameter.ztst:
KSH_ARRAY ${*:0:1} gives $0, etc.
2010-11-18 13:57:18 +00:00
Peter Stephenson
23bdfc7fd2 28418: add ${NAME:OFFSET:LENGTH} substitution 2010-11-18 10:07:55 +00:00
Peter Stephenson
3f3d80c394 28360: NO_UNSET option should check parameters with trailing options 2010-10-22 16:32:36 +00:00
Peter Stephenson
af5a85f363 28339: backslash-newline history without HIST_LEX_WORDS
28340: assignment to range of scalar variable with multibyte characters
2010-10-10 17:51:29 +00:00
pdpennock
d234059b1c 28338: keep =~ from inverting sense of subsequent tests (after &&/||) 2010-10-10 00:05:24 +00:00
Peter Stephenson
8aac69241f 28319: (z) splitting oddities 2010-10-06 08:27:09 +00:00
Peter Stephenson
f1495f5099 28259: Finally fix some ancient problems with here-documents 2010-09-14 14:46:26 +00:00
Peter Stephenson
ade705cf5b 28253: document -h argument to atribute commands 2010-09-12 18:56:40 +00:00
Peter Stephenson
8bc64084a4 28220 plus some comments: fix "HELLO=$HELLO shellfunc" 2010-08-31 19:32:56 +00:00
Peter Stephenson
e6f14352d6 28037: improved error messages for module autoloads
of math functions and builtins
2010-06-14 11:57:08 +00:00
Peter Stephenson
535cc4c875 Alexey: 27999: fix error message 2010-06-07 17:00:03 +00:00
Peter Stephenson
9ecfa0842b unposted: fix typo in previous commit 2010-05-12 10:17:58 +00:00
Peter Stephenson
cb8ddf171e c.f. 27950: strip bogus whitespace from tests 2010-05-10 12:31:49 +00:00
Peter Stephenson
a6ea7ab36d 27947: some cases where we should execute EXIT traps 2010-05-05 09:49:39 +00:00
Peter Stephenson
11440d17d1 27889: Force more use of GLOB_SUBST in parameters if ~ is used 2010-04-20 21:16:21 +00:00
Peter Stephenson
e2d855f364 27865: fix problem with glob_subst in parameter subsitution 2010-04-09 15:40:13 +00:00
Peter Stephenson
691be6d0fc unposted: change new test in A02alias.ztst to use cat 2010-03-25 15:13:35 +00:00
Peter Stephenson
e71df91bd2 27827: fix infinite loop in recursive alias at end of parsed string 2010-03-25 14:03:40 +00:00
Peter Stephenson
db65bef413 unposted: fix new test in A01grammar.ztst 2010-03-18 16:30:50 +00:00
Peter Stephenson
53745d8df0 27793 and follow ups: add PATH_SCRIPT option to find script using $PATH 2010-03-16 09:43:51 +00:00
Peter Stephenson
ec3f3e9eec 27780: effect of backslashes in :s changed in _files 2010-03-15 10:15:51 +00:00
Peter Stephenson
21193d7f01 users/14905 + 14906: problems with :s in parameter expansion 2010-02-27 00:18:13 +00:00
Peter Stephenson
ed5d053514 27722: bad error reporting and checking in conditions 2010-02-19 12:45:35 +00:00
Peter Stephenson
bbc88550db 27723: eval shouldn't modify non-zero return statuses 2010-02-19 12:26:08 +00:00
Peter Stephenson
f4f0becb63 27694: add P glob qualifier for prepending 2010-02-09 17:47:02 +00:00
Peter Stephenson
f02778f83c 27611: cache parameter values in math eval so subscripts are eval'd once 2010-01-20 17:17:45 +00:00
Peter Stephenson
af68ff74cd 27608: fix memory for mbegin, mend & regexp test 2010-01-20 11:16:22 +00:00
Peter Stephenson
8890e6e19f 27600: extend =~ syntax to set positional variables for matches 2010-01-17 21:48:25 +00:00
Peter Stephenson
1acf23db3e 27243: reverse indexing of arrays with beginning index out of range returned
wrong value
2009-09-05 19:49:19 +00:00
Peter Stephenson
72f0b14a04 27188: improve read -q by using read -k code 2009-07-24 18:35:49 +00:00
Peter Stephenson
bdfebe3e32 27129: fix status at start of function, command subst, etc. 2009-07-11 16:42:53 +00:00
Peter Stephenson
4db28c55b6 27126: a few more contexts where executing empty lists gives status zero 2009-07-10 22:10:25 +00:00
Peter Stephenson
73be7ee553 27106: reset status on command that expands to empty
27122: add POSIX_JOBS option
2009-07-10 11:08:39 +00:00
Peter Stephenson
c6a3ccc8d7 27092: missing then-clause for if wasn't an error 2009-07-06 20:44:28 +00:00
Peter Stephenson
5c5a388ed7 27087: change return codes from failed "." 2009-07-02 13:46:36 +00:00
Peter Stephenson
041057687f 27083: non-zero status on failures to find or execute file in "." 2009-07-01 15:07:25 +00:00
Peter Stephenson
72529e4fa6 27304: add ${(q-)..} flag 2009-06-05 11:15:48 +00:00
Peter Stephenson
49db32f2b5 Paul Ackersviller: 26959: delay before removing test modules
users/14118: fix test and assignment in prompt_special_chars
2009-05-13 08:39:47 +00:00
Peter Stephenson
ff0b4ebdd5 26950: warn on failed attempt to change user or group ID
26593: print warning but dont fail test if simple Unicode conversion fails
2009-05-08 14:30:31 +00:00
Peter Stephenson
a6ff95d0c1 26954: read should pass through invalid multibyte characters 2009-05-07 16:04:21 +00:00
Peter Stephenson
d853f4cd12 26895: restrict multibyte sorting test to western European charcters 2009-04-30 08:37:12 +00:00
Peter Stephenson
f91d89ccf8 Paul Ackersviller: 26883: naming of UTF8 locales on HPUX 2009-04-26 19:43:24 +00:00
Peter Stephenson
7293813b4e unposted: some .distfiles 2009-04-24 09:11:58 +00:00
Peter Stephenson
74eaa20404 26858: use zsh instead of sh in exec -l test 2009-04-21 10:37:36 +00:00
Peter Stephenson
28a809886d 26763: fix problem on failed cd -s to relative path 2009-03-20 22:52:56 +00:00
Peter Stephenson
e391f09457 26705: multibyte characters with Meta in ${(%)foo} etc. 2009-03-10 11:12:02 +00:00
Peter Stephenson
8e25f4449f 26675: add POSIX_ALIASES option 2009-03-03 17:26:03 +00:00
Peter Stephenson
a85db68271 26622: improve comments within $(...) and add test 2009-02-27 10:23:58 +00:00
Peter Stephenson
c7d8b0dfb8 26546, 26556: sticky emulation for functions defined in emulate ... -c ...
environments, plus documentation
2009-02-11 20:42:15 +00:00
Peter Stephenson
51a646917a 26545: new "emulate" test 2009-02-10 20:29:49 +00:00
Peter Stephenson
e7c9e03c58 26301: make zpty -r exit more cleanly on bad reads
add option -m to make zpty -r return status 1 if pattern failed to match
use this option in comptest
2009-01-13 12:09:26 +00:00
Geoff Wing
78d1f82e30 clean up test temporary files 2008-12-29 04:24:36 +00:00
Peter Stephenson
baa1145609 26090: another cond test for Cygwin needs removing 2008-11-26 10:50:07 +00:00
Peter Stephenson
14231691e1 26061: fix clash between process subst and numeric glob
26062: additional compmatch change, missed from 26047
2008-11-18 10:07:31 +00:00
Peter Stephenson
35a8612f21 26042 with some fixes from 26043 (Mikael):
allow <(...) and >(...) to occur in the middle of strings
and =(...) to have extra text following
2008-11-13 21:18:14 +00:00
Peter Stephenson
626286a5f7 26029: test for redirection with no preceding whitespace 2008-11-12 10:55:18 +00:00
Peter Stephenson
60b410fd7c "typeset -g <var>" should be silent even without TYPESET_SILENT 2008-11-05 13:01:56 +00:00
Peter Stephenson
2a4c8c27c6 26006: remove dependence on system error message 2008-11-04 09:51:21 +00:00
Peter Stephenson
25833cc89e 25969: two bugs with metafication plus a test for one 2008-10-30 15:34:18 +00:00
Peter Stephenson
2f50e20d84 25931: Test for prompt code reentrancy
users/13400: clarify some ksh-like editing issues
2008-10-24 16:00:48 +00:00
Peter Stephenson
96a1f68875 25911: see if we can work around multibyte problems in file system 2008-10-18 16:03:17 +00:00
Peter Stephenson
52fba13e9b Rocky: 25907: Makefile needs .exe to run zsh on Cygwin 2008-10-17 08:31:22 +00:00
Peter Stephenson
3c248a0de4 25905: fix and test doubled-hash radix output 2008-10-16 09:34:51 +00:00
Peter Stephenson
51b6ff2723 unposted, c.f. 25848: attempt to sanitize comptest environment 2008-10-12 19:20:00 +00:00
Peter Stephenson
d25c551c2c 25845: fix pattern but with backslashed and metafied charaters 2008-10-11 22:16:01 +00:00
Peter Stephenson
c1a41ff542 users/13323: new test wasnt robust about ignoring /etc/zshenv 2008-10-10 17:01:16 +00:00
Peter Stephenson
690e3e70ee test needs -f flag to zsh 2008-10-10 10:16:33 +00:00
Peter Stephenson
ad3e2aa215 25831: fix empty return values from subscript matches with RC_EXPAND_PARAM 2008-10-09 13:46:45 +00:00
Peter Stephenson
57418f3c7d 25791: force return from eval-style DEBUG trap lost status 2008-10-01 11:34:48 +00:00
Peter Stephenson
043959b0be 25760: add (~) flag 2008-09-27 20:58:24 +00:00
Peter Stephenson
b2d08a2155 25744: dynamic named directories and further doshfunc() simplification 2008-09-26 09:11:27 +00:00
Peter Stephenson
602cc2abe0 Rocky: 25734: typo
25739: warn about GPL in binary if libgdm is linked
2008-09-24 09:10:15 +00:00
Peter Stephenson
d3c4108f30 Rocky Bernstein: 25727: allow fc non-interactively
Add sanity test for empty history
2008-09-23 08:41:54 +00:00
Peter Stephenson
2920c227d3 25677: add %x and %I prompt escapes for shell source code debugging
tidy up interface to doshfunc()
2008-09-16 15:02:01 +00:00
Peter Stephenson
6951a1e0b2 25671: non existing variable in typeset -p should cause status 1 2008-09-15 08:57:25 +00:00
Peter Stephenson
b8a36eea87 25662: declare -p should never create arguments 2008-09-13 19:59:13 +00:00
Peter Stephenson
db31a13ecd 25627: add $ZSH_SUBSHELL 2008-09-05 21:02:08 +00:00
Peter Stephenson
7ce1d57358 25615: $ZSH_DEBUG_CMD for use in DEBUG traps 2008-09-05 09:05:21 +00:00
Peter Stephenson
0cba5ef62a 25595: fix line numbers with EVAL_LINENO,
try to fix oddities with funcstack and sourced files,
simplify use of caller element of funcstack
2008-09-03 09:08:18 +00:00
Peter Stephenson
2e3363ef7d 25571: when parsing use line numbers for the start of a token, not the end
add test and move debug trap tests to new file
2008-08-31 19:50:47 +00:00
Peter Stephenson
b41c26d78a 25570: line numbers of complex sublists were wrong, plus test
make lineno zlong in another place
2008-08-31 16:01:10 +00:00
Peter Stephenson
50e4b43362 25568: Frank Terbeck & pws: invalid continue and break arguments
also tests for control commands
2008-08-31 13:35:28 +00:00
Peter Stephenson
b8ae885ab8 25532: problem skipping assignments etc. with setopt ERREXIT 2008-08-25 17:28:13 +00:00
Peter Stephenson
1395a5a70f unposted: test changed needed by foregoing patch 2008-08-13 21:07:02 +00:00
Peter Stephenson
01f5d0a274 25443 (tweaked): allow $functrace to show sourced files 2008-08-12 20:25:14 +00:00
Peter Stephenson
6ce77ad7ba unposted: fix test failure in previous commit 2008-08-11 19:29:25 +00:00
Peter Stephenson
2853ca830a 25247 with further modifications: add $funcsourcetrace 2008-08-11 19:22:54 +00:00
Peter Stephenson
20c2246d68 25429: Rocky Bernstein: dont assume PS4 is set to the default 2008-08-11 08:40:56 +00:00
Peter Stephenson
2706eac454 25415: Make DEBUG_BEFORE_CMD the default.
Reuse ERR_EXIT in DEBUG traps.
Clean up trapreturn code.
2008-08-07 16:25:14 +00:00
Peter Stephenson
c4f33330f6 25409: fix eval's use of lastval 2008-08-06 19:51:04 +00:00
Peter Stephenson
b36d4eec0b 25400: Rockys test for second part of trapreturn bug 2008-08-06 08:54:18 +00:00
Peter Stephenson
21d757f50f 25392: test for 25367 2008-08-05 08:41:22 +00:00
Peter Stephenson
dc72699b6c 25364: fix k flag in hash subscript 2008-07-31 13:53:28 +00:00
Peter Stephenson
950756d579 25255: add anonymous function capability 2008-06-30 10:37:11 +00:00
Peter Stephenson
8a4af211c3 25149: add C_PRECEDENCES option to make arithmetic have C/Perl precedence 2008-06-12 13:45:04 +00:00
Peter Stephenson
c17b4c8d77 25145: make sure XTRACE output is redirected with stderr 2008-06-11 09:27:55 +00:00
Peter Stephenson
fe3884ba08 unposted addition to 25144 for tests 2008-06-10 09:13:01 +00:00
Peter Stephenson
bab70abe6b users/12848: return, break, continue in always block override try block 2008-05-11 19:03:58 +00:00
Peter Stephenson
7389a42d17 24708: Misc/globtests, Src/pattern.c, Test/D02glob.ztst:
fix backtracking problem in (#c) pattern
2008-03-30 22:14:22 +00:00
Peter Stephenson
ae832b901e unposted: fix alias test in 24736 properly 2008-03-27 09:41:08 +00:00
Peter Stephenson
a34d483b8d 24736: a couple more tests failing on Solaris 2008-03-26 15:26:20 +00:00
Peter Stephenson
56e1904e45 fix optimisation of string matching with multibyte mode
24732: attempt to provide adequate space for sched ztrftime string with
multibyte characters
2008-03-25 17:47:10 +00:00
Bart Schaefer
4625e0eabc 24717, 24718, 24719: a 0 subscript is neither valid nor equivalent to 1
any longer, so the (i) subscript flag on an empty array needs to yield 1.
2008-03-18 15:14:20 +00:00
Peter Stephenson
948f015df0 24711: fix re-presentation of here-documents munged internally
to here-strings
2008-03-14 11:40:57 +00:00
Peter Stephenson
e9b11fa9f0 unposted: make test for added space in 24699 safer 2008-03-11 10:00:38 +00:00
Peter Stephenson
25413054c1 24699: bug with ${(Q)...} on initial ">"
bug with ${(z)...} on string with unterminated "("
2008-03-08 01:20:49 +00:00
Peter Stephenson
6cc9c89d89 24673: another attempt to sort characters the same way on multiple UTF-8
implementations
2008-03-03 16:14:52 +00:00
Peter Stephenson
3dd3f72bd9 24618: avoid problems with sorting of UTF-8 characters by using sort 2008-02-27 20:03:21 +00:00
Peter Stephenson
0076d68664 24611: fix ${+array[...]} for empty range 2008-02-27 15:51:26 +00:00
Peter Stephenson
e21bd541a2 24600: yet another typo
24602: fix test when not run
2008-02-26 20:50:11 +00:00
Peter Stephenson
8a63e7dd88 4.3.5 2008-02-01 11:31:35 +00:00
Clint Adams
4b5793c83e 24506: make ZSH_VERSIONSUFFIX propagate to somewhere useful. 2008-02-01 02:58:13 +00:00
Peter Stephenson
b24d545294 users/12412: check for extra arguments in test and [ 2008-01-10 18:53:49 +00:00
Peter Stephenson
7d9ead9a46 24356: regex =~ test wasnt handled by gettext() 2008-01-04 14:45:39 +00:00
Clint Adams
4aef005bf8 24316: count skipped tests differently from successes and failures. 2007-12-25 01:40:16 +00:00
Peter Stephenson
f8585a7c21 24289 plus Ismail's suggestion 24290: count test scripts succeeded and failed 2007-12-18 21:16:30 +00:00