1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-30 15:02:18 +01:00
Commit graph

85 commits

Author SHA1 Message Date
Peter Stephenson
f37c181b29 43008: Improve code to remove privileges.
Remove warnings of unused values as we always check the finally
result later.

Put segid before setuid as the setgid could fail if UID
no longer privileged.
2018-06-15 10:27:29 +01: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
Barton E. Schaefer
e51c9c17af 40453: signal handler safety for callers of patcompile(PAT_STATIC), which is not re-entrant. 2017-01-29 08:30:14 -08: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
bb218704d2 40306 with doc tweaks: Change behaviour expanding alias in () function definition.
Now an error unless the () is part of the same error as the name.
Add ALIAS_FUNC_DEF option to allow it again.
2017-01-10 19:14:26 +00:00
Barton E. Schaefer
6756870a92 38039: POSIXy behavior for "set +o" 2016-03-03 13:01:08 -08:00
Barton E. Schaefer
7611e78ad1 unposted (cf. 37387): emulate turns off WARN_CREATE_GLOBAL 2015-12-19 16:57:09 -08:00
Peter Stephenson
ba36967b57 37038: add -l option to emulate to list options in emulations 2015-11-01 18:12:40 +00:00
Peter Stephenson
58f4cccb1f 37022: add GLOB_STAR_SHORT option to abbreviate ** and *** 2015-10-30 12:28:07 +00:00
Peter Stephenson
7708849b21 35655: APPEND_CREATE option for POSIX copmatible NO_CLOBBER 2015-06-29 19:01:31 +01:00
Peter Stephenson
39b28980f3 various posts: Implement assignment parsing for typeset.
Typeset assignments now work like raw assignments except
for no "+=" and no GLOB_ASSIGN.

Documented in typeset builtin doc and mentioned in release notes.

Tests to ensure basic sanity.

Enabled by default, can be turned off by "disable -r" with typeset
family of commands.
2015-06-24 10:21:12 +01:00
Peter Stephenson
40446a9827 35416: Turn on MULTIBYTE in all emulations.
This now includes sh.
2015-06-08 09:50:26 +01:00
Jérémie Roquet
52d37d7ff4 Take more care with errors from setuid().
This is to ensure the user is aware of errors unsetting the
PRIVELEGED option.
2014-10-31 10:02:36 +00:00
Peter Stephenson
b5198b10a1 32768 with further modifications: LOCAL_LOOPS option. 2014-06-13 21:39:44 +01:00
Peter Stephenson
7f6dc0fe8e 32682 with tweaks: Add INC_APPEND_HISTORY_TIME.
Revert INC_APPEND_HISTORY behaviour.
2014-06-06 21:56:47 +01:00
Barton E. Schaefer
19f3161e51 32634: add POSIX_ARGZERO option 2014-06-01 15:01:37 -07:00
Peter Stephenson
5236425865 users:18023: Add PIPEFAIL option 2013-10-06 21:35:27 +01:00
Peter Stephenson
fdf2867e5f 31444: Basic code for enable/disable -p 2013-06-13 18:38:33 +01:00
Peter Stephenson
3def943d04 users/17665: add FORCE_FLOAT option 2013-03-05 20:04:53 +00:00
Peter Stephenson
7c56d77184 30789: Add CONTINUE_ON_ERROR for old behaviour.
New behaviour is for scripts to exit on error instead of returning
to top level and executing the next command.
2012-11-15 21:08:15 +00:00
Peter Stephenson
4b86cc48f7 30726: make shell options passed to emulate stick along with the emulation 2012-10-11 20:14:01 +00:00
Peter Stephenson
4e2cdd7956 30722: fix some cases where emulations or options were not propagated properly
from the emulate command
2012-10-07 19:46:46 +00:00
Peter Stephenson
76ac7bf742 30716: make IGNORECLOSEBRACES an emulation option 2012-10-05 21:42:59 +00:00
Peter Stephenson
6f3ff6b653 30633: "functions -T" only traces marked function, not called functions 2012-08-21 18:03:01 +00:00
Bart Schaefer
fa8a0e241c 30320: "emulate" accepts invocation-time flags; other small doc tweaks. 2012-03-07 06:10:42 +00:00
Peter Stephenson
7614be7fe1 30303: emulate inside function marked for execution tracing enables xtrace 2012-03-01 13:00:52 +00:00
Peter Stephenson
c214b86e94 30101: add HASH_EXECUTABLES_ONLY option 2012-01-08 16:02:54 +00:00
Peter Stephenson
e3182c18de 29955++: IGNORE_CLOSE_BRACES option 2011-12-08 19:42:07 +00:00
Peter Stephenson
cc9bc2dd0b 28424: new POSIX_STRINGS option 2010-11-22 11:42:47 +00:00
Peter Stephenson
66f32a80dc 28308/28310: HIST_LEX_WORDS, check for quick history read 2010-10-02 21:03:03 +00:00
Peter Stephenson
ade705cf5b 28253: document -h argument to atribute commands 2010-09-12 18:56:40 +00:00
Peter Stephenson
53745d8df0 27793 and follow ups: add PATH_SCRIPT option to find script using $PATH 2010-03-16 09:43:51 +00:00
Peter Stephenson
06b7029aa8 27638, based on Frank Terbeck, 27633: SOURCETRACE option 2010-01-27 19:24:22 +00:00
Peter Stephenson
036cb0ce95 Joakim Rosqvist: 27591 as modified in 27594:
KEYBOARD_HACK variable
2010-01-13 12:05:22 +00:00
Peter Stephenson
606cfb5a5e 27167: add POSIX_CD option to test "." after CDPATH 2009-07-19 19:07:14 +00:00
Peter Stephenson
73be7ee553 27106: reset status on command that expands to empty
27122: add POSIX_JOBS option
2009-07-10 11:08:39 +00:00
Peter Stephenson
b31ca21b46 27100: Allow MONITOR option in non-interactive shells for testing. 2009-07-08 17:06:02 +00:00
Peter Stephenson
8e25f4449f 26675: add POSIX_ALIASES option 2009-03-03 17:26:03 +00:00
Peter Stephenson
c7d8b0dfb8 26546, 26556: sticky emulation for functions defined in emulate ... -c ...
environments, plus documentation
2009-02-11 20:42:15 +00:00
Peter Stephenson
8bb15c1392 25641: add emulation option (NO_)MULTI_FUNC_DEF 2008-09-11 12:49:05 +00:00
Peter Stephenson
c79ccea792 25418: set PROMPT_SUBST for all Bourne-style shells 2008-08-07 16:27:15 +00:00
Peter Stephenson
2706eac454 25415: Make DEBUG_BEFORE_CMD the default.
Reuse ERR_EXIT in DEBUG traps.
Clean up trapreturn code.
2008-08-07 16:25:14 +00:00
Peter Stephenson
0c9830d23c 25345, 25347: neaten interface from main shell to zle 2008-07-31 08:44:16 +00:00
Peter Stephenson
8a4af211c3 25149: add C_PRECEDENCES option to make arithmetic have C/Perl precedence 2008-06-12 13:45:04 +00:00
Peter Stephenson
78ce07b49f 24818: add HIST_FCNTL_LOCK.
unposted: update NEWS with new features
2008-04-17 10:23:45 +00:00
Peter Stephenson
97dcf15556 24808: initial support for combining characters in zle 2008-04-13 16:58:42 +00:00
Peter Stephenson
d70cfd3310 24696: turn off MULTIBYTE by default in sh emulation 2008-03-07 09:44:28 +00:00
Peter Stephenson
7fc8ddd955 24301: missed a case for lower-casing options 2007-12-19 21:49:34 +00:00
Peter Stephenson
abae4fe16e 23562: add KSH_ZERO_SUBSCRIPT option and leave off by default 2007-06-18 13:25:03 +00:00
Peter Stephenson
7f03c3d851 23375: Phil Pennock: =~, zsh/regex etc. etc. 2007-05-01 22:05:03 +00:00