Ulysse Buonomo
97e4310563
github #102 : Ensure todo.sh completion uses builtin commands
...
the `todo.sh` script allows redefining commands locally, which can mess
up this completion script. We are using the `command` subcommand to
avoid that.
2023-10-29 17:36:29 -05: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
Sebastian Gniazdowski
d86cc841f7
52240: use work-var $s not $suffix when setting flags
2023-10-26 13:41:03 -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
Christian Heusel
5fd8cccf54
github #103 : fix completion for zpool upgrade
...
This is done by simply adding a missing backslash to the code.
Fixes: 85bf9740a0
("49668: update zfs completion")
Signed-off-by: Christian Heusel <christian@heusel.eu>
2023-10-24 20:39:18 -05:00
Bart Schaefer
20739b5458
Unposted (cf. 52221, 52227, 52228): typos and unnecessary inclusions
2023-10-17 09:35:27 -07:00
Mikael Magnusson
457ab9f9fe
52222: Document bracketed-paste-url-magic
2023-10-17 04:54:05 +02: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
Mikael Magnusson
c9da370470
52056: _sccs: don't handle subcommands in main namespace
...
If someone using sccs wants to save typing, they can just do
alias get="sccs get" anyway.
2023-10-16 10:34:15 +02:00
Bart Schaefer
a709643b76
unposted (cf. 52219): fix typo
2023-10-15 16:40:34 -07:00
Bart Schaefer
487fba3fb3
52218: update notes since 5.9 release
2023-10-15 15:03:58 -07: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
985952e2f6
52217: update completions for FreeBSD 14
2023-10-11 00:57:16 +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
Oliver Kiddle
a920e368b8
unposted (cf. 52166): remove obsolete helper for svk
2023-10-11 00:38:46 +02:00
Jörg Sommer
60479a7a18
51812: run-help for docker, perf, podman, ssh, svnadmin
2023-10-11 00:38:32 +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
1b8446e1cd
52188: skip tests that fail if multibyte is not available
2023-09-27 23:45:00 +09: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
e4e9afe373
52180: clarify array behavior of ${|var|...} and REPLY
2023-09-23 09:30:55 -05:00
Bart Schaefer
b357992697
52176: metafy return from ${ ... } substitution
2023-09-22 20:29:40 -05:00
Jörg Sommer
9eb2b04703
51747: ip accepts the reduction of link to l.
2023-09-21 00:09:36 +02:00
Jörg Sommer
f093b41f09
51776: run-help-openssl: Reduce code and use new manpages
...
Openssl switches the naming of manpages to the common style
openssl-$SUBCOMMAND, e.g. openssl-enc. For backward compatibility try to
show the manpage with the old name if the new one doesn't exist.
2023-09-21 00:03:59 +02:00
Wim de With
12b61965b5
51857: Include fusermount3 in fusermount completions
...
fusermount3 is part of libfuse version 3, while fusermount is part of
libfuse version 2. Since they share the exact same command line
interface, we can reuse the completions.
2023-09-20 20:21:50 +02:00
Atte Peltomäki
d92b1a3547
51980: Add glob qualifier grouping operator to completion
...
Also improve wording in documentation to make glob qualifier grouping
easier to find by explicit use of terms 'logical OR' and 'logical AND'.
2023-09-20 20:17:09 +02:00
Jörg Sommer
bfc419e0c6
52102: Add subcommand autopurge to apt completion
...
Autopurge (like autoremove) take the same options like purge and remove the
given packages along with their dependencies they become unused.
2023-09-20 20:08:12 +02:00
Wesley Schwengle
fa17566b65
52141: Add trailer token completion for git commit --trailer
...
Via 842587016d in the git project there has been support for git commit
trailer tokens for the bash completion system. This commit adds similar
support to zsh. It includes additional hardening of the regexp and
allows for tokens which include a '.'. This can be found in git via
9a0ec17606.
2023-09-20 20:00:10 +02:00
Oliver Kiddle
d3394f3593
52163: completion update for OpenZFS 2.2
2023-09-20 19:49:49 +02:00
Bart Schaefer
1becbba0b6
users/29160, workers/52156: Fix repetition of substitution modifier.
2023-09-16 20:51:27 -07:00
Christoffer Lundell
f72757ccf3
52082: Enable linewise edit-command when in visual-line mode.
2023-09-16 20:06:12 -07:00
Bart Schaefer
293d36ae1e
52155: Test file missed out from previous commit
2023-09-16 20:03:32 -07:00
Bart Schaefer
3aaef16569
52154, 52155: Implement, document, and test non-forking command substitution.
...
Comprises workers/51957, 51985, 51987, 51988, 51993, 52131, 52139, plus
fixes for return values, parse errors, and trailing newlines (which were
incorrectly removed) in ${ ... }
2023-09-16 17:34:39 -07:00
Bart Schaefer
355cfc1b95
52153: mapfile without HAVE_MMAP should not trim newlines
2023-09-16 13:08:59 -07:00
Mikael Magnusson
aecef41f2e
52142: Move _history_modifiers call to _parameter
...
_parameters is used in many contexts, like assignments in command
position, assignment after typeset, etc, where history modifiers are not
valid. _brace_parameter already calls _history_modifiers explicitly so
this seems more in line with that.
2023-09-15 21:09:51 +02:00
Jun-ichi Takimoto
0eab788437
52122 + 52129: fix (#) parameter expansion flag
...
Without the X flag, null string "" is substituted for bad math expression.
2023-09-13 09:59:42 +09:00
Bart Schaefer
96ce0abf6b
52125: getoutput() must not free() after gettempname(..., 1) for heap
2023-09-10 21:00:23 -07:00
Bart Schaefer
d95197a2ec
unposted: extra quoting of words in "eval" for safety
2023-09-09 22:11:50 -07:00
Jun-ichi Takimoto
d82ea848bf
52114: improve _nice
...
support -n option, complete only external commands
2023-09-07 22:37:16 +09:00
Bart Schaefer
e3c2af216b
52115: permit repeated "private" declarations as long as types aren't changed
2023-09-05 18:04:09 -07:00
Jun-ichi Takimoto
c0caef5613
52112: use '_normal -p subcmd' to complete only external command
2023-09-04 15:07:52 +09:00
Bart Schaefer
9ff1b2810e
users/29220: fix bug with assignment to private following explicit unset
2023-09-03 11:42:00 -07:00
Shohei YOSHIDA
a8853323dd
52098, 52099, 52100, 52105(+minor tweak): update for latest macOS
2023-08-28 13:12:50 +09:00
sergio
53fe16e9b5
51858 (+52073): virsh's edit command accepts all domains
2023-08-28 12:02:15 +09:00
Bart Schaefer
5f984319b5
Marlon Richert: 51861: fix _approximate when compadd has been overridden
...
Before this patch, if compadd had been overridden by a function of the
same name, _approximate would not do corrections.
2023-08-27 15:27:45 -07:00
Bart Schaefer
2a854aae48
52028: improvements to _shadow / _unshadow, plus helper and doc
2023-08-27 15:22:14 -07:00