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

12238 commits

Author SHA1 Message Date
Robert Woods
97b4a30c4e 52053: whitelist capability CAP_WAKE_ALARM
Since the systemd update v254 from July 28, 2023, the capability
'CAP_WAKE_ALARM' is passed by default to some user process (especially
desktop managers). Since 'CAP_WAKE_ALARM' is very narrow in focus, it
is preferable that zsh does not consider it as a 'privileged'
capability.
2023-08-27 15:05:08 -07:00
Shohei YOSHIDA
660a629864 52034: update sqlite3 completion for version 3.42.0 2023-08-27 14:59:03 -07:00
Nojus Gudinavičius
094f230e36 users/29175: Don't need to forget zle edits if none 2023-08-22 14:29:44 +01:00
Shohei YOSHIDA
d36b9ae0dc 52059 (+52070): _scons: fix for options --jobs and --question 2023-08-21 17:35:25 +09:00
Peter Stephenson
7233c7a750 29130, 21931 (Ray): document what typeset -t is for.
This replaces documenting what it isn't for.
2023-08-16 13:18:26 +01:00
Jun-ichi Takimoto
9b9870a6dc 52037: complete only external commands for env/watch
also includes a few minor fixes for _date, _env and _watch
2023-08-14 15:51:12 +09:00
Shohei YOSHIDA
40a6265aa3 52013,52014,52015,52016,52017,52018: updates for coreutils option changes 2023-08-06 13:35:20 -07:00
Peter Stephenson
aa8e4a0290 52008: Pattern bug with branches + exclusion
Add tests.
2023-08-01 14:32:55 +01:00
HexorCatZ
95269147fc github #100: _qemu: add -enable-kvm and -bios suggestion 2023-07-31 16:31:03 -05:00
Bart Schaefer
c4cfb67465 unposted (cf. 51968): improve documentation of typeset -gn and -r 2023-07-26 20:27:51 -07:00
Bart Schaefer
baa19d2a85 51945: assorted documentation improvements, bug fixes, and new test
1) Document the behavior of "typeset -n existing_var" (via Jun T. comment)
2) Prohibit "typeset -nm pattern" because, well, it's insane.  Add test.
3) Improve doc for ${(!)ref} including ${{t!)ref} (Jun T.)
4) Fix doc for how-to unset of a named ref (Jun T.)
5) Allow "typeset +r -n ref" and "typeset +r +n ref" (Jun T.)
6) Fix "typeset -r -n ref=param" to create readonly references
7) Avoid accidental removal of PM_UNSET flag (Jun T.) and update test
8) Fix "typeset -gn ref=value" and add a test for it
9) Add tests for read-only reference behavior
10) Fix infinite recursion when resolving scope of an unset local
named reference, add test.
2023-07-26 20:15:21 -07:00
Shohei YOSHIDA
5ff23c2c6d 51979: Update free completion for procps-ng version 4.0.3 2023-07-26 20:01:06 -07:00
Shohei YOSHIDA
ec61c9a5c0 51964: support pidof variants other than procps 2023-07-26 19:58:00 -07:00
Bart Schaefer
aa85564319 51969: read -d and -s should not reset terminal state when stdin is redirected 2023-07-26 19:54:30 -07:00
Bart Schaefer
301412c0e8 Fix reversed article numbers in most recent entry 2023-07-26 19:50:52 -07:00
Bart Schaefer
fb5a6a871c 51950 (tweak per 51949): correct Thingy refcount in raw_getbyte() 2023-07-26 19:49:50 -07:00
Shohei YOSHIDA
1ac393169a 51927: Update procps watch completion for version 4.0.3 2023-07-26 19:44:51 -07:00
Bart Schaefer
d70e3780fc unposted (cf. 51899): document _shadow 2023-07-26 19:39:15 -07:00
Peter Stephenson
03695f4b58 51977: PIPEFAIL interaction with ERREXIT / ERRRETURN
Ensure the list-level error handling code is executed if we detect pipe failure for a foreground job.

Add tests.
2023-07-20 10:46:14 +01:00
mirsella
5ec4695033 github #99: _trash: add completion for trash-d
https://github.com/rushsteve1/trash-d
2023-07-19 23:13:58 -05:00
Jun-ichi Takimoto
c4ec7442f1 51897: update _softwareupdate
based on 51895 (Shohei YOSHIDA)
2023-07-10 22:13:52 +09:00
Bart Schaefer
5ead24c881 51890: fix "whence -wa" for multiple arguments 2023-07-09 19:28:28 -07:00
Jun-ichi Takimoto
a84fdd7c8f 51889: fix module loading problem with full RELRO
If full RELRO (relocation read-only, one of the security enhancement
methods for ELF-based systems) is used when building zsh (as in binary
packages of most Linuxes), loading a module (e.g. zsh/zftp) fails unless
all the modules it depends on are already loaded. With this patch the
necessary modules are automatically loaded.
2023-06-26 17:13:04 +09:00
Jun-ichi Takimoto
1b9bc3441c 51884: reset IFS if it contains invalid characters
This happens only if MULTIBYTE option is on.
2023-06-26 16:52:40 +09:00
Bart Schaefer
4345eed1fe 51887: namespaces recognized in math, incorrect usages rejected. 2023-06-22 13:36:40 -07:00
Bart Schaefer
e7a8dbb16c Missed ChangeLog entry from previous commit. 2023-06-22 13:16:49 -07:00
Marlon Richert
6c993144bd 51860: simplify suffix handling in _prefix to remove less accurate hack
This solves the following problems in the _prefix completer:
- The old code had logic for dealing with compstate[unambiguous] that
  was unnecessary. It works fine without it.
- Because of this logic, if a widget set compstate[insert]=1 after
  calling _main_complete, an `x` was left after the completion on the
  command line.
- If the same widget also set `compstate[to_end]=`, then instead, the
  last character of the inserted completion would be treated as an
  autoremovable suffix, with the actual suffix being inserted to the
  line as a normal character.
- After inserting a completion, the cursor would move to the end of the
  entire current word on the command, not the end of word that was
  inserted. This is not what you want with _prefix, since you are trying
  to complete a word _before_ the one on the command line, after which
  you usually want to insert a separator, such as a space or slash,
  before the next word.
2023-06-22 13:13:09 -07:00
Stephane Chazelas
4f6a1b3717 51813: differentiate empty $2 from omitted $2 in version comparisons 2023-06-22 12:52:12 -07:00
Jun-ichi Takimoto
10bdbd8b5b 51877: do not build pcre module if pcre2-config is not found 2023-06-20 18:14:27 +09:00
Jun-ichi Takimoto
ecd3f9c950 51862: support texinfo-7.0 2023-06-19 11:19:25 +09:00
Jun-ichi Takimoto
cd1a0a7097 51826: correctly read metafied null character from history file 2023-06-08 15:36:31 +09:00
Stephane Chazelas
2778fc5d7a 51817: protect ':' in _rcctl
This was in 51817 but missed in commit 0577daf.
Also remove _ant.rej that was added by the commit.
2023-06-08 15:26:41 +09:00
Stephane Chazelas
58852b3246 Protect another : from history modifier expansion 2023-06-06 09:24:31 +01:00
Stephane Chazelas
0577dafcaa Protect some :s from history modifier expansion 2023-06-06 09:22:18 +01:00
Peter Stephenson
78102120b9 51816: add :S history modifier with pattern match 2023-06-06 09:16:46 +01:00
Marlon Richert
63400fdbc5 51779: update completion test for 51761 2023-06-06 11:03:09 +09:00
Peter Stephenson
88eeade0bc 51739: detect invalid history word beginning 2023-05-25 15:47:23 +01:00
Oliver Kiddle
f80ad32c3f 51769: fix compilation when HAVE_GETRUSAGE is not defined
Also silence compiler warning when HAVE_SETUPTERM is not defined.
2023-05-21 03:36:26 +02:00
Marlon Richert
b41dd30c90 51761: Use zstyle verbose for _parameters descriptions
According to the manual, extra-verbose means "more verbose at the cost
of a probable decrease in completion speed". That's not the case here.
2023-05-21 03:28:43 +02:00
Marlon Richert
caa1c38c6f 51348: Fix subscript completion bugs inside ~[...]
When completing inside ~[...] (_with_ the trailing `]` present), the
following bugs occured:
- Subscript completion was skipped entirely when there were one or more
  slashes ('/') in the subscript, which is incorrect, since slashes are
  allowed there.
- Instead of going through _complete, $_comps[-subscript-] was called
  immediately, causing _setup to be skipped.
- If succesful, _main_complete was exited right after, causing
  menu-style, comppostfuncs and other essential completion features to
  be skipped.
2023-05-21 03:24:17 +02:00
Marlon Richert
9a5f213573 51759: Show alias values in command completions
Show the value of each alias when descriptions are shown. Enabled by default.
2023-05-21 03:14:27 +02:00
Marlon Richert
1f64d09127 51760: r and R were listed in the wrong order. 2023-05-21 03:08:00 +02:00
Marlon Richert
bb441f77a7 51758: Make dynamic dir completion easier to implement 2023-05-21 03:05:20 +02:00
Peter Stephenson
a95198e268 51722: Safety for extracting elements of $historywords 2023-05-13 21:49:07 +01:00
Oliver Kiddle
b4d1c756f5 51738: support pcre's alternative DFA matching algorithm 2023-05-13 00:59:00 +02:00
Oliver Kiddle
f3f371deb3 51728: assign pcre named capture groups to a hash 2023-05-13 00:56:48 +02:00
Oliver Kiddle
b62e911341 51723: migrate pcre module to pcre2 2023-05-13 00:53:32 +02:00
Felipe Contreras
9b9f3adde8 50612: vcs_info: fix typo 2023-05-13 00:44:01 +02:00
Vidhan Bhatt
51d5ddb02b github #98: feat: add shortcuts completions 2023-05-13 00:31:47 +02:00
Bart Schaefer
8943b5e450 users/29070: clean up tokens in cmdstr before compctl completion 2023-05-11 12:37:52 -07:00