Daniel Shahaf
1d9c6a746c
37752: More tests for the previous patch.
2016-01-29 09:14:54 +00:00
Daniel Shahaf
bced1beb8c
37700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax.
2016-01-29 09:14:53 +00:00
Peter Stephenson
1c41f98aab
37705: don't turn - to Dash after start of brace parameter
2016-01-20 11:22:09 +00:00
Peter Stephenson
7f5b2f5709
37348: Tests and fix for ${(q+)...}.
...
Needs dupstring() for empty string case.
2015-12-08 15:08:24 +00:00
Peter Stephenson
f5b8efa7e0
37344: restore old printable quoting, add ${(q+)...}.
...
The \C- form is only used inside quotedzputs().
${(q+)...} outputs a quotedzputs() representation.
2015-12-07 21:49:07 +00:00
Peter Stephenson
d290874c48
37335: fix tests after 34314
2015-12-07 10:36:45 +00:00
Peter Stephenson
72a67716ac
20974: Bug with scalar assignment to special array in typeset
2015-11-20 11:18:16 +00:00
Peter Stephenson
d814071b14
37096: Another $${(P)...} tweak.
...
Make a top level (P) work with nested ones, i.e. ${(P)${(P)...}...}
2015-11-12 14:28:15 +00:00
Peter Stephenson
7a951ef93e
37094: Further tweaks to parameter name references.
...
Safety in array test.
Make nested references work.
Add parameter tests.
2015-11-11 22:14:16 +00:00
Peter Stephenson
e8d6041f69
37074: extend previous fix to over whitespace at end
2015-11-07 18:05:43 +00:00
Peter Stephenson
0fcc6c8fb2
37073: another SH_WORD_SPLIT problem.
...
In cases like x${:- y} the space was simply removed instead of
being used for splitting.
2015-11-06 17:28:02 +00:00
Peter Stephenson
b498bd7ce5
36982: Fix bug with (#cN) patterns and remove redundant description.
...
We need to restore the current count of matches when returning to
match at the point where we previously matched.
2015-10-27 11:54:19 +00:00
Daniel Shahaf
a5cb918d40
unposted: Test for 36669
2015-09-28 18:13:52 +00:00
Barton E. Schaefer
18130bed7f
36552 plus test: fix Nularg string in quotestring(QT_DOLLARS)
2015-09-17 21:44:14 -07:00
Peter Stephenson
17d52d69ec
Fix retying variables in opposite order.
...
Now gives an error.
Add test.
2015-08-09 19:10:01 +01:00
Barton E. Schaefer
a9add3de54
35694: fix handling of history modifiers applied across all elements of an array parameter value
2015-07-06 16:35:05 -07:00
Peter Stephenson
75cafccc0a
35343: Avoid $#name length handling for POSIX_IDENTIFIERS
2015-05-31 16:40:14 +01:00
Peter Stephenson
e88610b786
35326: $#- was misparsed as ${#-}
2015-05-29 16:06:47 +01:00
Peter Stephenson
d756f4eafd
35078: Add backslash quoting to parameter (b) flag from 35067.
2015-05-11 09:40:00 +01:00
Peter Stephenson
6269db883a
35067: Add (b) parameter flag for pattern char backslashing.
...
Doc tweak from Daniel in 35071.
Includes test.
2015-05-10 19:19:34 +01:00
Peter Stephenson
daa7d99702
34546: further $_ with anon function fix.
...
Also add tests.
2015-02-13 21:31:31 +00:00
Peter Stephenson
c6c9f5daf2
34322: bug with interface to parsestr() etc.
...
Was showing up in places like ${(e)...} where command substitution
could reallocate the token string, but actually there was never any
guarantee that the lexer wouldn't do that, so this was always
a bit iffy.
2015-01-18 22:38:57 +00:00
Peter Stephenson
5b855e40bd
unposted: Add missing -f arg to zsh in D04parameter.ztst
2014-12-14 00:06:47 +00:00
Peter Stephenson
023c2236e1
Treat exec from subshell as if forked
...
This removes weird behaviour when optimising the last command.
In particular SHLVL is correct from a subshell executed as the last
command.
2014-11-02 15:29:06 +00:00
Peter Stephenson
66320ca93a
33459: test for variable substitution in variable splitting
2014-10-13 11:38:48 +01:00
Mikael Magnusson
b8751cb9d7
32949 (wip 32928, 32937): Add :^ syntax for zipping two arrays
2014-08-04 19:00:01 +02:00
Peter Stephenson
bd919f30ae
32001: fix crash on ${:*} and ${:|}
2013-11-17 20:33:57 +00:00
Peter Stephenson
44757a653c
30993: fix parameter modifier crash with :wq on empty string
2013-01-22 16:28:58 +00:00
Peter Stephenson
cd1b5d86e0
users/17046: don't count too many elements when splitting quoted parameter
...
substitution on null parameter
2012-05-01 19:43:44 +00:00
Peter Stephenson
cb4ff5e970
30439: ${...:*...} with nonexistent or non-array after *
...
should return no results
2012-04-22 18:39:53 +00:00
Peter Stephenson
5eb53bf88d
30431 with typo in _typeset fix:
...
add ${...:|...} and ${...:*...} operators, as documented
2012-04-22 18:10:42 +00:00
Peter Stephenson
4f142f2794
30413: (q-) parameter flag should quote null string
...
(q-q) etc. should be treated as errors
2012-04-16 11:26:09 +00:00
Bart Schaefer
4a4d9f3cbe
30383, users/16991 (Vaclav), users/17000: Improve speed of arrayuniq() by
...
implementing a hash seive algorithm; add test to exercise it.
2012-04-10 01:17:02 +00:00
Peter Stephenson
6f93994a5a
30299: "$*" was split with SHWORDSPLIT if IFS was empty or unset
2012-02-29 09:57:40 +00:00
Bart Schaefer
3604a9c4ac
30242: Tests for ${...=...} in POSIX emulation
2012-02-22 15:35:49 +00:00
Peter Stephenson
53f893d062
30181, plus rename of PF_* flags to PREFORK_*:
...
Pass sh-wordsplitting instructions to paramsubst() using flags,
avoiding side effects of explicitly setting and unsetting the
SHWORDSPLIT option.
2012-02-12 20:27:48 +00:00
Peter Stephenson
815e52cdbf
users/16253, users/16255: a nulstring should be split like an empty string
2011-08-17 19:00:08 +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
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
4263d2b821
28889: ${##} should return the length of $#
2011-03-11 21:05:59 +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
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
fc6c76519b
28434: make ${NAME:OFFSET} always use zero-offset
2010-11-25 10:34:32 +00:00