Han Pingtian
77130df674
35514: [[:foo:]] tests in completion should be more specific
2015-06-24 14:56:32 +01:00
Peter Stephenson
7b46509e92
35590: tweak and test text output from typeset
2015-06-24 14:32:15 +01:00
Peter Stephenson
39b28980f3
various posts: Implement assignment parsing for typeset.
...
Typeset assignments now work like raw assignments except
for no "+=" and no GLOB_ASSIGN.
Documented in typeset builtin doc and mentioned in release notes.
Tests to ensure basic sanity.
Enabled by default, can be turned off by "disable -r" with typeset
family of commands.
2015-06-24 10:21:12 +01:00
Peter Stephenson
2118390dc1
unposted: add missing (void) argument list to bracketedestring()
2015-06-23 11:28:47 +01:00
Peter Stephenson
7d588bc158
33566: regex module fix for unmatched parentheses
2015-06-22 17:35:38 +01:00
Oliver Kiddle
98687fa1de
35474, 35492: support the bracketed paste mode of newer terminal emulators
2015-06-19 00:15:38 +02:00
Oliver Kiddle
0a0ba5e664
35487, 35496: don't reinstate previous incremental search string
...
when search direction changes
2015-06-19 00:01:42 +02:00
Mikael Magnusson
e55c167083
35476: Allow setting $0 when POSIX_ARGZERO is not set
2015-06-17 02:26:17 +02:00
Barton E. Schaefer
2cfe892414
35493: erase $_ when the command line is an assignment
2015-06-16 17:03:39 -07:00
Barton E. Schaefer
19b37ef565
35482: be consistent about how argzero is allocated
2015-06-16 17:02:53 -07:00
Peter Stephenson
f1923bdfa6
Add non-metafied character length handling.
...
Use this in regex module and add test using $'\ua0'.
Rename mb_metacharinit() to mb_charinit() as it does not involve
metafied characters.
2015-06-12 09:30:39 +01:00
Peter Stephenson
40446a9827
35416: Turn on MULTIBYTE in all emulations.
...
This now includes sh.
2015-06-08 09:50:26 +01:00
Oliver Kiddle
ac26fafa03
35412: fix for - flag when formating strings with printf
2015-06-07 23:07:26 +02:00
Barton E. Schaefer
229bc3cc74
35350: extend "fc -I" to cover listing of "internal" history events only
2015-06-06 12:31:47 -07:00
Peter Stephenson
2abba7243a
35386: expand tabs where useful in builtins outputing function.
...
Also add to zed -f.
Option is -x <numm>.
2015-06-05 11:21:22 +01:00
Oliver Kiddle
4804a7c5ff
35360 (replacing 35357): fix for configuring zpty on FreeBSD without
...
pty.ko loaded
2015-06-03 23:54:09 +02:00
Mikael Magnusson
4dc4e23376
GLOB_ASSIGN should only affect scalar assignments
2015-06-02 16:09:35 +02:00
Peter Stephenson
099e717c15
35359: Improved math parsing and errors.
...
Check for bogus trailing ")" at end of top-level parse.
Extend some math error messages to indicate they are math errors.
2015-06-02 10:21:55 +01:00
Baptiste Daroussin
aab6bdc366
35357: FreeBSD needs HAVE_POSIX_OPENPT for zpty
2015-06-02 09:21:24 +01:00
Peter Stephenson
93e72ed1e9
35353: print -x and print -X expand tabs
2015-06-02 09:17:04 +01:00
Peter Stephenson
75cafccc0a
35343: Avoid $#name length handling for POSIX_IDENTIFIERS
2015-05-31 16:40:14 +01:00
Barton E. Schaefer
911edc5ea4
users/20238: add "fc -L" to operate only on the local shell history
...
Also avoid invoking the editor on empty results.
2015-05-30 15:22:09 -07:00
Peter Stephenson
e88610b786
35326: $#- was misparsed as ${#-}
2015-05-29 16:06:47 +01:00
Peter Stephenson
cba1d41ffc
2037: ${functions[foo]} shouldn't be unmetafied.
...
When passed back from the parameter-specific "get" handler it's
still in the shell's internals, so remains metafied.
This caused mayhem with UTF-8 characters in function bodies.
2015-05-29 12:17:18 +01:00
Peter Stephenson
2b08d0ed67
35318: POSIX_BUILTINS behaviour for getopts.
...
It needs to keep OPTIND, as well as the index within the
string pointed to by OPTIND, global in this case.
2015-05-28 18:32:39 +01:00
Peter Stephenson
cb596a55d9
35306: "test -z \(" failed due to parse confusion
2015-05-27 21:25:55 +01:00
Daniel Shahaf
9fcc105ff6
35127#1: Fix _describe/compdescribe problem with unsorted groups
2015-05-23 10:05:06 +00:00
Peter Stephenson
2f6a8a6c6c
Tweak test for function level of exit.
...
Sometimes local level jumps so we need an inequality instead
of an equality.
2015-05-22 23:37:45 +01:00
Peter Stephenson
a95f2c6071
35250: Fix case documentation (SH_GLOB)
2015-05-21 10:43:32 +01:00
Peter Stephenson
afb78f5d14
35248: treat fully parenthised zsh patterns as complete case patterns again
2015-05-21 10:25:07 +01:00
Barton E. Schaefer
af957f2ed6
35231: make mkevnstr() safe for NULL value
2015-05-20 10:14:04 -07:00
Peter Stephenson
ff19094669
35193: Add "unalias -a".
2015-05-18 16:57:08 +01:00
Peter Stephenson
2d6569e590
35184: Additional case fix for 35168.
...
Lexical analysis flags got screwed up after a "|", so we
didn't parse patterns properly, in particular those with parentheses.
2015-05-18 12:06:43 +01:00
Peter Stephenson
52aeb9aaeb
35168: Improve parsing of case patterns.
...
"|" is now found properly by looking for words that come
from the lexical analyser, rather than hacking a pattern
returned in one dollop.
Update some completion functions that need extra quoting
as a result.
Add test for new parsing.
Update version number to 5.0.8-dev-3 because of wordcode
incompatibility.
2015-05-18 09:56:00 +01:00
Peter Stephenson
d52bf91659
35155: cmdpop() could be called erroneously on error
2015-05-15 20:26:08 +01:00
Peter Stephenson
0da0a0b9c7
35153: nested math substitution
2015-05-15 10:19:53 +01:00
Peter Stephenson
59a874f94e
35151: improved check for parameter q and b flags
2015-05-15 09:58:17 +01:00
Peter Stephenson
e86720190e
35131: allow "[]" to match empty character set.
...
This only works if there's no further "]" in the pattern,
since if there is the first "]" has to match a literal character.
2015-05-15 09:35:24 +01:00
Oliver Kiddle
63ffbab84d
Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf format string
2015-05-14 22:56:24 +02:00
Peter Stephenson
85a4cf9b36
35110: don't implicitly initialize restricted integers to zero
2015-05-14 09:28:57 +01:00
Oliver Kiddle
08fb0f6602
35092: fix for numeric arguments from vi operator pending mode
2015-05-13 23:07:09 +02:00
Peter Stephenson
f454ee26a8
35114: zformat -a multibyte char widths
2015-05-13 21:02:48 +01:00
Peter Stephenson
ec57c91b58
users/20203: nested functions in always blocks when exit pending
2015-05-13 16:17:04 +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
Mikael Magnusson
bb2362e2c0
Don't treat NUL as a combining character
2015-05-10 01:59:08 +02:00
Jun-ichi Takimoto
a6db0b41ca
35064: rename ISPRINT to ZISPRINT to avoid conflict
2015-05-09 16:02:37 +09:00
Peter Stephenson
f855801fb9
35059: fix, document, test readonly -p.
...
Don't output specials as can't be reconstructed.
Output arrays in a useful order.
2015-05-08 12:53:18 +01:00
Peter Stephenson
60c6bcdeae
35054: readonly -p + POSIXBUILTINS fix.
...
Now displays unset variables marekd readonly
2015-05-07 12:10:16 +01:00
Barton E. Schaefer
aa34d2f165
35046: unwind cmdstack when erroring out of lexing a parameter expansion in braces
2015-05-06 07:46:15 -07:00