1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 17:24:50 +01:00
Commit graph

48 commits

Author SHA1 Message Date
Mikael Magnusson
9a79a60c90 52946: Revert "Handle completer filenames with funny characters in them"
This reverts commit 88f47569030b12345aee3bd857e424351ee61726.
2024-06-08 17:52:59 +02:00
Mikael Magnusson
b727b74fe2 52768: Handle completer filenames with funny characters in them
For example, a file called _foo;bar will cause this to happen:
% hello [press tab]zsh: command not found: _foo
zsh: command not found: bar
2024-03-23 22:19:27 +01:00
Bart Schaefer
53d6b47d92 49917: change sense of "Ignore insecure ..." answer and use "autoload -r" 2022-03-29 13:18:49 -07: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
Mikael Magnusson
6f4cf79140 46280: compinit: add -w to explain why compdump runs 2020-08-05 14:19:14 +02:00
Peter Stephenson
b816291a17 42294: disable REPORTTIME in completion 2018-01-18 09:39:08 +00:00
Jan Kryl
51eff6168e 41095: Use 2>&- in completion to avoide restricted shell problem. 2017-05-08 18:03:05 +01: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
2e76fb80b4 40372: turn off POSIX_IDENTIFIERS option in completion 2017-01-16 17:52:51 +00:00
Barton E. Schaefer
044fcbabf1 unposted (see users/22287): _comp_options needs to disable ERR_RETURN 2016-12-27 11:14:27 -08:00
Barton E. Schaefer
5e71690c19 38289: "builtin enable" in $_comp_setup to avoid accidentally invoking external command of the same name 2016-04-15 21:39:04 -07:00
Peter Stephenson
a68d22eb00 35573: turn off POSIX_BUILTINS in completion.
This is now needed to get suitable OPTIND behaviour.
2015-06-23 12:02:06 +01:00
Peter Stephenson
6b4d6eaa9b users/20243: turn off GLOB_ASSIGN in completion system. 2015-06-02 14:43:08 +01:00
Peter Stephenson
02a8a8c7e4 33866: addendum to completion trap fix
We need the multifuncdef option on for the trap function definitions to
work.  It is by default by this wasn't enforced for the completion
functions.
2014-12-05 18:08:18 +00:00
Barton E. Schaefer
baaa57acaf 33804: hide values of large arrays in typeset output
Declare arrays used internally by completion with the -H attribute.
2014-11-27 13:41:13 -08:00
Peter Stephenson
347a63da0c 31465: fix basic completion and globbing uses of disabled patterns 2013-06-13 18:40:36 +01:00
Bart Schaefer
3d75ca5c64 users/17051: explicit IFS for "read" in compinit 2012-07-17 15:25:44 +00:00
Peter Stephenson
94ef211b9b unposted: add NO_ignoreclosebraces to options for completion 2011-12-09 15:02:39 +00:00
Mikael Magnusson
164cf1abd5 29596: fix syntax to work with ksh_arrays 2011-07-22 13:22:20 +00:00
Mikael Magnusson
3214cf0a74 29384: Add _comp_caller_options 2011-05-27 14:36:33 +00:00
Mikael Magnusson
72cb7cfc6f 29307, 29308 + replies: Fix some doubled words in docs and comments. 2011-05-19 16:10:46 +00:00
Peter Stephenson
35004b546d Mikael: 28948: compdef -e overrides interpretation of argument as service 2011-03-29 08:46:56 +00:00
Peter Stephenson
8d00aca697 users/15621: compdef -p/-P <pat>=<service>
users/15622: use service with _pick_variant
2010-12-06 17:23:04 +00:00
Peter Stephenson
4a0ddedf0a unposted: a couple of typeset -g's and a comment 2010-02-08 11:49:28 +00:00
Peter Stephenson
52f401a4a7 25608: NO_cshjunkiesquote in completion 2008-09-05 08:50:05 +00:00
Peter Stephenson
15799cfbae unposted: Completion/compinit: typo in 25068 2008-05-19 11:37:06 +00:00
Peter Stephenson
93fa3796c2 unposted: fix unwanted output from new typeset in compinit 2008-05-18 20:32:15 +00:00
Peter Stephenson
7f304c7736 25068: Fix some completion warnings with WARN_CREATE_GLOBAL 2008-05-18 20:19:01 +00:00
Peter Stephenson
b815f89220 24807: Frank Terbeck: Completion system needs no_ignore_braces 2008-04-12 16:32:40 +00:00
Peter Stephenson
0390d69f27 24776: clarify compinit message when compaudit fails 2008-03-28 15:00:46 +00:00
Oliver Kiddle
176ba31531 Frank Benkstein: 24047: fix compdef for more than three commands using the
same service
2007-11-01 10:56:39 +00:00
Peter Stephenson
9471bbcfa0 22934, modified, see 22937: add HIST_SUBST_PATTERN option
make ${.../#%...} anchor at both ends
2006-11-01 12:25:18 +00:00
Peter Stephenson
6157c14d06 22525: lengths and cases of multibyte strings in parameters and history 2006-06-28 13:12:55 +00:00
Bart Schaefer
4c213d57ac 21880: add carriage return to IFS in completion context. 2005-10-17 14:56:16 +00:00
Peter Stephenson
d307660dee 21575 plus unposted: Add WARN_CREATE_GLOBAL option 2005-08-08 16:48:52 +00:00
Bart Schaefer
12b44290ff _comp_options needs NO_kshtypeset 2004-10-22 15:51:48 +00:00
Oliver Kiddle
78da7d872e users/7553: include zsh version in dump file to avoid problems with upgrades 2004-06-16 15:10:13 +00:00
Oliver Kiddle
ca0deae382 19767, 19785: store flags for -z and -k options to autoload allowing the
completion system to be used with ksh_autoload set
2004-04-20 12:11:13 +00:00
Oliver Kiddle
37522a2dea 19768: add clue to insecure directories warning and send errors to stderr 2004-04-14 08:08:53 +00:00
Peter Stephenson
9dd13ac83f users/4865: Completion/compinit: need to add NO_octalzeroes to
$_comp_options.
2002-04-25 15:35:31 +00:00
Sven Wischnowsky
45f9a36216 remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819) 2002-03-13 09:28:04 +00:00
Sven Wischnowsky
f56ba813bb allow different sets of completion definitions selected with option -T to compdef; use this for parameter values and redirections (16755) 2002-03-04 08:53:41 +00:00
Bart Schaefer
f256c16efe Fix exit status of compdef. 2001-06-21 09:24:39 +00:00
Sven Wischnowsky
4a7abbfdd6 use `eval $_comp_setup' in all entry points of the completion system to not only set up the options, but also redirect stdin and ignore trap handlers for ZERR (14530) 2001-05-29 11:59:50 +00:00
Bart Schaefer
bb694bad47 NO_kshglob in _comp_options. 2001-04-29 19:12:13 +00:00
Bart Schaefer
b4d021263d Improve prompt when compaudit finds badness. 2001-04-06 14:47:25 +00:00
Sven Wischnowsky
3d7263ff67 after-move cleanup 2001-04-02 13:04:04 +00:00
Sven Wischnowsky
1e3caef58d moved from Completion/Core/compinit 2001-04-02 11:02:05 +00:00