Wu, Zhenyu
a61b105795
github #126 : Fix some typos
2025-01-27 23:39:05 +01:00
dana
6bb792dba8
53257: use monotonic clock where appropriate
...
update the following features to use the monotonic clock for calculating time
deltas and intervals:
* MAILCHECK parameter
* PERIOD parameter
* SECONDS parameter
* %(nS.t.f) prompt-expansion sequence
* time built-in's elapsed time and cpu % values
* zsh/zftp ZFTP_TMOUT parameter
* zsh/zprof timings
also use CLOCK_MONOTONIC_RAW instead of CLOCK_MONOTONIC on macOS
2024-12-26 10:09:25 -06:00
Oliver Kiddle
57248b8883
52750: remove ansi2knr support for old pre-ansi K&R compilers
2024-03-18 20:02:34 +01:00
Jörg Sommer
fe276d3873
52442: mark hookdef.name as const
...
At least *zle_main* uses const strings to initialize its
structure *zlehooks*.
2024-01-28 00:24:06 +01:00
Bart Schaefer
8d009d35a9
51510: Skip namespaces in "set"/"typeset" output, add tests, fix bug
2023-03-06 20:01:04 -08:00
Bart Schaefer
0562be0af8
51509 (+ fix typo): Add ${(!)name} for the referred-to name of a named reference
...
Extend ${!name} in ksh emulation for same
2023-03-06 19:54:48 -08:00
Bart Schaefer
a9ba166216
51483: Enable assignment and expansion of parameters with ksh-like namespace prefixes.
2023-03-05 14:03:42 -08:00
Bart Schaefer
3eed6f70cd
51402: Some ksh/bash features, additional sanity checking
...
* Add "unset -n"
* Allow and enforce "typeset -n -r" for read-only references
* "can't change type via subscript reference" error
* Better checking for self-referential declarations/assignments
* Ksh-style "foo=bar; typeset -n foo" creates foo=bar reference
* Support "typeset -n ref; for ref in ..."
* Subscripted references use NO_EXEC for safety
* References assigned in called scopes reset scope at end
* Allow named references to $! $? $$ $- $0 $_
2023-02-12 11:51:41 -08:00
Bart Schaefer
511e020c68
51360: Initial implementation of named references.
2023-02-12 11:21:23 -08:00
Oliver Kiddle
e2a39513dc
unposted: mention attributes changes, fix renumbering mistake and allow completion to offer prompt escapes for PROMPT_EOL_MARK
2023-01-11 16:05:06 +01:00
Oliver Kiddle
9d99a01367
51281: keep track of attributes left on at the end of left and right prompts and reapply them explicitly as appropriate
2023-01-10 21:02:16 +01:00
Oliver Kiddle
c01479a2ed
51280: add support for italic and faint fonts in the line editor
2023-01-10 20:57:03 +01:00
Oliver Kiddle
667ead3a64
51258, 51272: refactor handling of terminal attributes, removing OFF flags in zattr
2023-01-10 20:53:17 +01:00
Oliver Kiddle
a73c705b0c
51212: remove STOUC() macro
...
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
2022-12-16 23:28:10 +01:00
Daniel Shahaf
56e7b147ad
unposted: Follow-up to the last commit: Fix a typo in a comment.
2022-12-15 21:35:45 +00:00
Daniel Shahaf
5c9713603d
unposted: zsh.h: lextok: Add an explanatory comment with a cross-reference.
2022-12-15 20:38:10 +00:00
Philippe Altherr
ab9c579ef9
51098: remove unreachable NOERREXIT_UNTIL_EXEC code and effects
2022-12-03 21:35:51 -08:00
Peter Stephenson
02747bbbd3
49989: Single byte versions of nice quoting.
...
Align interfaces for "nice" printing of characters with those for
multibyte to make more available in single-byte compilation.
2022-04-05 09:40:07 +01:00
Daniel Shahaf
45182eb4d4
unposted: Fix some typos and markup.
2022-02-22 13:11:02 +00:00
Bart Schaefer
82ff9f24f1
48560: add TYPESET_TO_UNSET option to remove initialization of parameters
...
Changes typeset such that ${newparam-notset} yields "notset" and
"typeset -p newparam" does not show an assignment to the parameter. This
is similar to the default behavior of bash and ksh, with minor differences
in typeset output.
Also add tests for some POSIX incompatibilities plus minor changes for test
harness robustness.
2021-04-18 13:58:09 -07:00
Bart Schaefer
408a830483
47913: implement CASE_PATHS option to make NO_CASE_GLOB more sensible
2021-04-10 14:26:46 -07:00
Oliver Kiddle
0721060f36
47510: drop code that avoided termcap for named colours
...
The inconsistency caused test failures where TERM is e.g. rxvt-unicode.
This also makes a couple of bits available in zattr by removing flags
indicating whether to use termcap which is not an attribute as such.
2021-04-03 00:58:45 +02:00
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