1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-16 12:21:18 +02:00
Commit graph

4292 commits

Author SHA1 Message Date
Stephane Chazelas
b3cad1c24c 52515: (+ tests in 52527) avoid sh errors when running shebang-less scripts with paths starting with - or + 2024-02-18 18:22:37 +00:00
Bart Schaefer
8c59638522 52556: fix crash when changing type of unset referent via named reference 2024-02-17 20:27:56 -08:00
Oliver Kiddle
14c230dc32 52533: add module to provide alternate readonly views of the content of .zle.hlgroups 2024-02-15 14:48:04 +01:00
Mikael Magnusson
04ae7dc64c 52526: metafy terminfo capabilities 2024-02-09 19:33:43 +01:00
Mikael Magnusson
653be0823d 52517: ensure that %H is followed by {
The previous code would accept any character after %H assuming it
was a {, which was probably also a buffer overrun sometimes.
2024-02-04 16:48:44 +01:00
Mikael Magnusson
ec446a6f34 52516: fix crash in %H when hlgroups is empty
typeset -A .zle.hlgroups; print -P %H
2024-02-04 16:48:02 +01:00
Bart Schaefer
c039a74e09 Typos in previous commit comments 2024-02-03 19:55:41 -08:00
Bart Schaefer
ce8909b494 unposted: Record as comments some notes about namespace usage exceptions. 2024-02-03 19:52:39 -08:00
Bart Schaefer
8801665e5b 52513: fixes and doc for using nofork substitutions with private parameters
Also fixes a crash bug with {fd}>&N redirections and private parameters
2024-02-03 12:07:14 -08:00
Bart Schaefer
d7cf4f25eb 52509: manage internals of stdio objects when performing redirections. 2024-01-28 17:14:23 -08:00
Oliver Kiddle
85545af42b 52500: add layer token to zle attributes
This provide control over the precedence of highlighting where
different regions overlap.
2024-01-28 00:47:36 +01:00
Oliver Kiddle
3c5dacd503 52499: support highlight groups
These are defined in a .zle.hlgroups associative array and referenced
using %H in prompt strings or hl= in zle_highlight/region_highlight.
2024-01-28 00:34:21 +01:00
Oliver Kiddle
8e622c25b2 unposted: remove unused variable to silence compiler warning 2024-01-28 00:28:06 +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
Jörg Sommer
4929910267 52444: module: Mark name argument of some functions const 2024-01-28 00:23:56 +01:00
Jörg Sommer
98affe1115 52441: zle_vi: Mark variables with const init as const
Because these variables are initialized with as constant string, they should
be marked as *const* to make the compiler running with `-Wwrite-strings`
more happy.
2024-01-28 00:23:43 +01:00
Jörg Sommer
ce033e2b9c 52440: zle.textobjects: Mark variables as const
Because these variables are initialized with as constant string, they should
be marked as *const* to make the compiler running with `-Wwrite-strings`
more happy.
2024-01-28 00:23:22 +01:00
Oliver Kiddle
698af7bc13 52405, 52502: add empty elements to $match for optional captures that don't match 2024-01-26 07:33:38 +01:00
Bart Schaefer
1f861ceba1 52492: prevent indexing error on recursive arithmetic in array subscript
Operator returns error when operand returns error
2024-01-24 18:00:16 -08:00
Bart Schaefer
b3e763cc22 52482: strip trailing newlines in emulation modes of ${ command; } 2024-01-24 17:56:21 -08:00
Bart Schaefer
0459cc2eaf 52477: fix "zcurses mouse delay ..." and one other typo 2024-01-24 17:36:18 -08:00
Bart Schaefer
c72b4a74ef 52473: zstyle -q for testing existence of a zstyle setting 2024-01-24 17:32:45 -08:00
Bart Schaefer
3406089647 52468: save and restore state of correct TTY when using read -s / -d 2024-01-24 17:27:41 -08:00
Oliver Kiddle
58840922ee 52392: use octal escape to match = without error messages from awk 2023-12-13 11:34:12 +01:00
Oliver Kiddle
25f5618b17 52382: avoid the non-standard \e in C code, preferring \033 2023-12-13 11:28:00 +01:00
Bart Schaefer
4da0f689c4 unposted: Fix longstanding typo in comment 2023-12-09 19:48:48 -08:00
Bart Schaefer
0ecc456fb2 52365: record state of exited background jobs so as to be visible in TRAPCHLD 2023-12-09 19:36:47 -08:00
Oliver Kiddle
618f842b46 52326, 52372: add -q option to kill for sigqueue 2023-12-05 18:51:33 +01:00
Bart Schaefer
fbec213cc5 52325: Clarify doc for edge cases of named references and nofork substitution
Unposted whitespace change avoids a parse error in ${ ... } with comments.
2023-11-23 13:23:55 -08:00
Bart Schaefer
fcf080ab57 52313: Src/exec.c: multios are not interactive and check for write errors. 2023-11-18 16:22:24 -08:00
Bart Schaefer
ddfc81a2b8 52309: fix cases that hang with all signals blocked.
* no job control inside <<(substition)
* allow interrupt of multios reading from a terminal
2023-11-15 20:29:50 -08:00
Bart Schaefer
420d2c713f 52275: rationality in zgetdir() and zgetcwd() 2023-11-15 20:21:51 -08:00
Bart Schaefer
e6ad117ccb 52202: improve handling of quoting in ${var/pattern/replacement} 2023-11-15 20:16:04 -08:00
Oliver Kiddle
bad8af1808 52271: use correct form for unused parameter 2023-11-08 02:32:23 +01:00
Oliver Kiddle
de635b4ee5 52253: support pcre callouts with shell evaluation of the callout string 2023-11-02 14:54:59 +01:00
Oliver Kiddle
9f57ca4ac8 52252: Coverity defect 1547827 2023-11-01 00:34:29 +01:00
Bart Schaefer
f36fccbb84 50569 (Daniel Shahaf): main keymap defaults to emacs
Tweaked to make the sample .zshrc code better match the former C code,
and to remove the declaration of no-longer-used variable "ed".
2023-10-26 20:55:45 -07:00
Bart Schaefer
98a6892cb1 52244: Fix a batch of minor defects reported by Coverity.
Coverity defects 1547831, 1547826 (remove unused function), 1521551,
1500752, 1500747, 1401549, 1372423, 1270645, 1255799, 1255792, 1255789,
1255787, 1255782, 1255750
2023-10-26 08:27:18 -07:00
ErrrorMaxx
0c15cc8712 github #104: fix small typo 2023-10-24 20:42:46 -05:00
Mikael Magnusson
6b34f3dc14 51490: Use time_t for lastt which stores result of time(0)
Coverity complained about this, and possibly some more people would in 15
years
2023-10-16 10:36:12 +02:00
Oliver Kiddle
70320635b4 52189: ignore compadd -M if -U also specified as they don't make sense together
This fixes df completion.
2023-10-11 01:06:50 +02:00
Oliver Kiddle
4878c2b130 52216: metafy usernames to allow for them to be UTF-8 encoded 2023-10-11 00:50:18 +02:00
Oliver Kiddle
83f8a71a7c 52214: allow extra byte for nul terminator in allocation 2023-10-11 00:43:05 +02:00
Bart Schaefer
1ffc6d0ef5 52204: fix thinko, unmeta() buffer should not be freed 2023-10-05 07:58:27 -07:00
Bart Schaefer
86196843bd 52198: put back incorrectly removed zfree() 2023-10-03 21:21:54 -07:00
Bart Schaefer
0f0ba0539e 52195: cached_username is already metafied when initializing LOGNAME 2023-10-01 13:38:25 -07:00
Bart Schaefer
29644f12e7 52193: handle UTF8-encoded USERNAME and therefore home directory in zcompile
Includes one unposted thinko fix ztrdup -> dupstring
2023-10-01 11:34:33 -07:00
Jun-ichi Takimoto
02e33c54d8 52169: a few more improvements of (#) flag
fix (#X) in C locale in FreeBSD, DragonFly, NetBSD.
Negative values such as ${(#X):--1} are now error.
UCS4 is limited to < 0x8000_0000 (in OSes without __STDC_ISO_10646__).
2023-09-27 01:56:47 +09:00
Bart Schaefer
b357992697 52176: metafy return from ${ ... } substitution 2023-09-22 20:29:40 -05:00
Bart Schaefer
1becbba0b6 users/29160, workers/52156: Fix repetition of substitution modifier. 2023-09-16 20:51:27 -07:00