1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-03 02:01:25 +02:00
Commit graph

8663 commits

Author SHA1 Message Date
Peter Stephenson
4a63170c2c Test typeset preserves types of existing variables when already local 2015-06-24 10:14:39 +01:00
Peter Stephenson
7529c2a158 Some more typeset tests and fix for nested asignment 2015-06-23 17:51:36 +01:00
Peter Stephenson
a2229ce10c Further doucmentation improvements after comments from Bart and Oliver 2015-06-23 10:00:04 +01:00
Peter Stephenson
2a1065a455 Further updated to typeset documentation 2015-06-22 16:46:08 +01:00
Peter Stephenson
5c513aa33f Documentation for new typeset parsing.
Don't need KSH_TYPESET even in emulation.

integer and float should be parsed the same way in case of
arguments that will be evaluated as expressions.
2015-06-22 16:37:59 +01:00
Peter Stephenson
dcb000e53a Add errors for incorrect types of assignment 2015-06-22 10:16:52 +01:00
Peter Stephenson
c9ab2bf594 Very basic tests for typeset reserved word inteface. 2015-06-21 21:39:09 +01:00
Peter Stephenson
072dcfe545 Consistent use of reserved word interface for typeset.
Don't try to use array type if we have an existing hash we can use.
2015-06-21 21:23:08 +01:00
Peter Stephenson
b7b67d456e Fix remaining existing tests.
XTRACE output for builtins with assignment arguments added.
Note difference as the output is assignment-like too:
  'foo=<squggle><squiggle>bar'
now appears as
  foo='<squiggle><squiggle>bar'

Remove stupid "int htok" that stopped name part of scalar being expanded.

Rewrite KSH_TYPESET test to use old builtin interface where this applies.
2015-06-20 19:59:11 +01:00
Peter Stephenson
2dcd766f62 Fix bug with conflicting types for typeset array assignment.
This allows

  typeset -A hash=(key1 val1 key2 val2)
2015-06-19 21:32:55 +01:00
Peter Stephenson
879ef7e076 Expand non-assignment arguments in assign list consistently. 2015-06-19 14:58:37 +01:00
Peter Stephenson
601be75605 Expand name part of typeset assignment where needed 2015-06-19 14:26:08 +01:00
Peter Stephenson
83a8d8da1a A couple of issues with tied arrays. 2015-06-19 13:51:02 +01:00
Peter Stephenson
9b730849ab Update version number for wordcode incompatibility.
Fix null dereference in tie code.

Add export to typeset reserved words.

Note "export FOO foo=(stuff here)" still doesn't do the export:
there's an ordering problem that needs fixing.
2015-06-19 12:48:33 +01:00
Peter Stephenson
e03ead4fff Debug so basic typeset cases work.
zshlex() needed after ENVSTRING and ENVARRAY in typeset.

WC_TYPESET needs to come before WC_CURSH as not
handled by execfuncs.

More care needed counting and retrieving arguments
in typeset.

Array assignment for new typeset variable should be more like
scalar assignment.
2015-06-19 12:00:59 +01:00
Peter Stephenson
a29746ee48 First compiling attempt at typeset array handling.
Completely untested and undebugged.
2015-06-19 09:50:29 +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
Oliver Kiddle
deb2ec7f17 35510: use consistent formatting for git subcommands 2015-06-18 23:50:59 +02:00
Oliver Kiddle
8ebb4e65a9 35504: complete % placeholders for git log --format 2015-06-18 23:47:40 +02:00
Oliver Kiddle
2c301822ca 35521: sort matches numerically and use pfiles on Solaris 2015-06-18 23:42:51 +02:00
Eric Cook
2e1bb72c07 35490: silence errors and avoid blank match due to missing local 2015-06-18 22:41:47 +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
Mikael Magnusson
54c2c442ee _gdb: Allow 'core' to occur anywhere in a coredump filename 2015-06-17 01:45:18 +02:00
Barton E. Schaefer
9f3dc6605a 35469: test UNDO_CHANGE_NO to determine whether to start over or use the next history event 2015-06-14 20:12:42 -07:00
Barton E. Schaefer
806f73a0b3 35467: complete files for non-GNU du 2015-06-14 20:10:50 -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
370e7f73f6 35442: document MULTIBYTE is always on by default when available 2015-06-11 12:41:05 +01:00
Oliver Kiddle
5ff536f613 35418: fix usage synopsis for _describe to be clear that a single
description is used
2015-06-09 23:35:15 +02:00
Peter Stephenson
40446a9827 35416: Turn on MULTIBYTE in all emulations.
This now includes sh.
2015-06-08 09:50:26 +01:00
Daniel Hahler
e8cf611879 35216: _git-checkout: do not call __git_commits twice
This makes `branch_arg` empty by default, to be used only for
__git_remote_branch_names.

`branches::__git_revisions` was used here, but that's the same as
tree_ish_arg='tree-ishs::__git_tree_ishs' - both call __git_commits.

Only tree_ish_arg will call __git-commits now.
2015-06-08 00:35:01 +02:00
Oliver Kiddle
ac26fafa03 35412: fix for - flag when formating strings with printf 2015-06-07 23:07:26 +02:00
Barton E. Schaefer
a253ada08b 35163: move "show-ambiguity" style to _setup so that more precise context can be applied 2015-06-06 12:35:52 -07: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
Peter Stephenson
bfac7f09df 35374: tab expansion with double width characters 2015-06-03 09:58:18 +01:00
Peter Stephenson
897ad46692 35369: better GLOB_ASSIGN testing 2015-06-02 16:23:08 +01:00
Mikael Magnusson
4dc4e23376 GLOB_ASSIGN should only affect scalar assignments 2015-06-02 16:09:35 +02:00
Peter Stephenson
6b4d6eaa9b users/20243: turn off GLOB_ASSIGN in completion system. 2015-06-02 14:43:08 +01:00
Daniel Shahaf
ce9d3fd7b7 35270: _describe: Document a known issue described in 35229
(which is the same thread as 35127 and 34768)
2015-06-02 10:13:50 +00:00
Daniel Shahaf
83ac36c14f 35271: New completion: beep.
The new completion is mostly boilerplate except for the handling of
$words/$CURRENT to support specifying the arguments multiple times
separated by -n.
2015-06-02 10:09:01 +00:00
Daniel Shahaf
9dc173efc3 unposted: Typo fix 2015-06-02 10:08:17 +00: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
Oliver Kiddle
52cace8056 35356: factor out completion of tty devices 2015-06-02 00:52:11 +02:00
Oliver Kiddle
72ecc2ef36 Adrien Vergé: 35352: completion for new Redhat package manager 2015-06-02 00:49:09 +02:00