Bart Schaefer
63b6398b70
47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
...
Mikael Magnusson: 47382: Completion for 47364
2020-09-13 16:19:52 -07:00
Daniel Shahaf
d4da2c73f0
47300: Document the EC_NODUP, EC_DUP, EC_DUPTOK triplet.
...
All uses reviewed; no functional change.
2020-08-08 06:01:32 +00:00
Roman Perepelitsa
a8e31c07a7
unposted: comments explaining how hashtable must be created
...
See zsh-workers 46277, 46278, 46279.
2020-07-29 08:53:47 +02:00
Roman Perepelitsa
6f6363de94
46275: eliminate undefined behavior caused by redefinition of hashtable
...
struct hashtable has different set of data members in different
translation units. This is undefined behavior.
2020-07-29 08:27:15 +02:00
Peter Stephenson
4e0058afc5
users/24971: ${(-)var} sorts on signed integers
2020-07-03 21:05:46 +01:00
Peter Stephenson
3df604a4be
46026: Add CLOBBER_EMPTY option.
2020-06-09 18:07:01 +01:00
Mikael Magnusson
8923d2a618
Add SHORT_REPEAT option
2020-04-02 07:42:16 +02:00
Daniel Shahaf
338a4a299a
45583/0004: internal: Add some comments around wordcodes. No functional change.
2020-03-22 02:23:52 +00:00
Daniel Shahaf
4960699de2
45583/0003: internal: Add some comments around Eccstr. No functional change.
2020-03-22 02:23:52 +00:00
Mikael Magnusson
e6fa0b3b65
Fix typos reported by codespell in Src/
2020-01-09 14:49:55 +01:00
Jens Schleusener
11dbe4c286
45269: Fix misspellings in completions and elsewhere.
2020-01-09 13:42:02 +00:00
Daniel Shahaf
8bc4400762
45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.
2019-12-17 05:12:36 +00:00
Martijn Dekker
c578f0a08b
45004: Fix typos in comments
2019-12-11 02:37:39 +00:00
dana
78fb8aaccf
44198: Add cd_silent option to suppress all cd output
2019-04-12 14:00:19 -05:00
Oliver Kiddle
50597692e0
43759: add support for true colour terminals
2018-11-05 22:24:12 +01:00
Oliver Kiddle
37d0005a9e
43747: new module to map colours from hex triplets to the nearest matching colour
2018-11-05 22:24:05 +01:00
Peter Stephenson
fa5b9bf6ee
43674: Split more PM_ flags for variables and functions.
...
This avoids using sign bit.
Also bump dev version because of wordcode incompatibility.
2018-10-12 09:25:04 +01:00
Peter Stephenson
f99f7dca75
43616: Various parameter setting and display fixes.
...
Mostly to do with typeset -p and tied variables and their interaction.
Some general tied variable fixes.
2018-10-08 10:10:42 +01:00
Peter Stephenson
7c5241edf3
43446: More entersubsh() / addproc() wiring.
...
Fix additional races by passing back use of list_pipe_job
from subshell.
2018-09-12 09:22:10 +01:00
Peter Stephenson
9408c4825b
users/23472: Add $sysparams[procsubstpid] to zsh/system
2018-06-15 15:02:36 +01:00
Peter Stephenson
1d2f684c9b
42793: Always define FDT_PROC_SUBST even if not needed.
...
This avoids proliferating #ifdef's.
2018-05-17 10:00:37 +01:00
Peter Stephenson
758966502c
42322 (tweaked): Fix interactive_comments history with just a coment.
...
Don't discard the line from the history merely because it produced
no synactic words.
2018-01-24 17:40:56 +00:00
Peter Stephenson
36fcaeb167
42245: Abort last word on interactve comment.
...
Last recorded word should be the previous one.
2018-01-08 17:26:33 +00:00
Peter Stephenson
5f6a52c06c
42156: new CHECK_RUNNING_JOBS option demanded by bash groupies
...
Also new job options.
Also suppress debug error if rows or columns are reported as zero as
this is normal without a physical terminal.
2017-12-22 20:21:23 +00:00
Peter Stephenson
8ec3d17b4b
33395: Improvments for function managment.
...
Functions defined inside other fucntions needs file line number
adding. Particularly useful for anonymous fucntions.
Add flag to indicate a function is anonymous. Done up to now
by comparing the name to a pointer but this is more consistent.
2017-12-22 19:51:04 +00:00
Peter Stephenson
728f2adfc8
Add typeset -p1, like typeset -p with newlines
2017-10-01 17:53:56 +01:00
Peter Stephenson
6230e82d44
41764 (test tweaked): allow [key]+=value when modifying arrays
2017-09-27 09:41:50 +01:00
Peter Stephenson
7d4b41b52a
41747: Don't create hash entry if just checking existence.
...
Pass a flag in indicating this case.
2017-09-25 20:03:05 +01:00
Peter Stephenson
85b0dd7133
Updates for ksh array element syntax.
...
Move detection of key/value pairs down into prefork().
Detect normal array assignment and [key]=val array assignemnt
separately. Mark key / value pairs with Marker and pass up flag. Deal
with marked triads specially later on.
2017-09-24 17:33:07 +01:00
Peter Stephenson
54b3958440
First go at var=([key]=value) syntax.
...
Works for both normal and typeset case, also var+=...
Still to do: allow to be mixed with straight array assignment,
improve typeset -p, implement [key]+=value.
2017-09-13 20:54:00 +01:00
Peter Stephenson
2ef3dff65a
41668: New --emulate option on invocation.
...
This sets the shell emulation mode similarly to ARGV0=... which
doesn't work from other shells.
Note that this gives more comprehensive emulation than running
emulate within the shell.
2017-09-11 10:12:17 +01:00
Peter Stephenson
97d4bdbc7e
41590 modified as 41595: make ERR_RETURN more logical.
...
It now operates separately at each function depth.
To keep ERR_EXIT global, make the noerrexit variable usd bit flags.
Extend tests.
2017-08-24 19:46:20 +01:00
Peter Stephenson
ddb8675901
posted but has not shown up: fix fd problem in subshell.
...
Record fd's that have been saved in fdtable and if the shell
forks close them as they will never be restored.
2017-08-15 20:49:23 +01:00
Sebastian Gniazdowski
e556f9c78d
41402: Add hasher to ecstrcode to reduce string comparisons
2017-07-09 17:34:55 +01:00
Peter Stephenson
a955065cda
Delay processing "disown" for superjob.
...
This is a job forked from the current shell when a job partly
running from the current shell was suspended. When all associated
processes started from the main shell are finished the job is
continued and at this point the disown can complete.
2017-07-04 09:40:45 +01:00
Peter Stephenson
d4947e67cc
41239: Save and restore default history event on context stack.
...
This ensures that the default event set by an expansion in ZLE
doesn't propagate to the command line expansion.
2017-06-07 10:03:41 +01:00
Peter Stephenson
151a4660e2
41164: Don't free a history entry if it's curline.
...
This replaces 41113 / 94014ff65b
with a simple local change for the
immediate problem. It's not entirely clear if this reflects wider
changes in the structure of the history code.
2017-05-30 09:39:32 +01:00
Peter Stephenson
94014ff65b
41113 (tweaked): Save current line linkage to history ring.
...
When saving history state save whether the current history line
is linked into the ring and remove it, and restore as appropriate
later. This avoids surprises where the history ring is freed
and incorrectly frees the current state in curline, which has
a different allocation strategy.
Original patch tweaked to make restoring more logical.
2017-05-18 09:33:08 +01:00
Jun-ichi Takimoto
171e7fa4c1
41090: Replace iswprint() if unicode9 is enabled.
...
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09:00
Peter Stephenson
f3f8537cfa
40760: Always tokenize unquoted - to Dash.
...
This fixes use of pattern match character ranges in unusual contexts.
Attempt to detect a tokenized - in cases where we don't care.
2017-03-07 10:43:58 +00:00
Peter Stephenson
f5272bccd8
40536: Prepend directory to $fpath.
...
Used if parent function is autoloaded by absolute path so
as to find functions in the same suite without shell code
modification.
2017-02-13 16:32:50 +00:00
Barton E. Schaefer
0672c75359
40439: PAT_HEAPDUP definition just for clarity
2017-01-28 15:37:27 -08:00
Peter Stephenson
c861b17bbf
40391: Add WARN_NESTED_VAR option and functions -W.
...
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
2017-01-23 09:50:57 +00:00
Peter Stephenson
33799ae2b0
40335: More care with autoload function path.
...
If doing "autoload -X", the path present might actually be location
of file containing the function with the autoload -X. Add
an explicit flag to say it's a directory for autoload.
2017-01-12 13:54:29 +00:00
Peter Stephenson
f26d1ba6b0
Add features associated with autoloading a function using an absolute
...
path.
-d defaults to normal fpath
-r remembers the path without actually loading. May be combined with -d.
-R does the same but it's an error if not found
-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
2017-01-11 11:26:13 +00:00
Peter Stephenson
bb218704d2
40306 with doc tweaks: Change behaviour expanding alias in () function definition.
...
Now an error unless the () is part of the same error as the name.
Add ALIAS_FUNC_DEF option to allow it again.
2017-01-10 19:14:26 +00:00
Oliver Kiddle
7630215ba0
40119: correct typo in comment
2016-12-08 23:55:53 +01:00
Peter Stephenson
c03228f9ed
Extra case for ERR_RETURN and ERR_EXIT.
...
Don't trigger just because status is non-zero at end of
complex shell construct as this may be a case we've already
suppressed.
2016-12-05 11:21:01 +00:00
Joshua Rubin
596ba302e6
40037: Unicode 9 character width support.
...
Enable with --enable-unicode9.
2016-11-29 17:19:53 +00:00
Eitan Adler
110ffae9fe
40035: Cosmetic fixes for comments and documentation.
...
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00