summary refs log tree commit diff
path: root/README
Commit message (Collapse)AuthorAgeFilesLines
* 48614: getopts: Calculate OPTIND according to POSIX_BUILTINSdana2021-05-031-0/+3
|
* 48522: README: Clarify _alternative changeDaniel Shahaf2021-04-131-1/+3
|
* 47794: exec: run final pipeline command in a subshell in sh modebrian m. carlson2021-04-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zsh typically runs the final command in a pipeline in the main shell instead of a subshell. However, POSIX specifies that all commands in a pipeline run in a subshell, but permits zsh's behavior as an extension. The default /bin/sh implementations on various Linux distros and the BSDs always use a subshell for all components of a pipeline. Since zsh may be used as /bin/sh in some cases (such as macOS Catalina), it makes sense to have the common sh behavior when emulating sh, so do that by checking for being the final item of a multi-item pipeline and creating a subshell in that case. From the comment above execpline(), we know the following: last1 is a flag that this command is the last command in a shell that is about to exit, so we can exec instead of forking. It gets passed all the way down to execcmd() which actually makes the decision. A 0 is always passed if the command is not the last in the pipeline. […] If last1 is zero but the command is at the end of a pipeline, we pass 2 down to execcmd(). So there are three cases to consider in this code: • last1 is 0, which means we are not at the end of a pipeline, in which case we should not change behavior. • last1 is 1, which means we are effectively running in a subshell, because nothing that happens due to the exec is going to affect the actual shell, since it will have been replaced. So there is nothing to do here. • last1 is 2, which means our command is at the end of the pipeline, so in sh mode we should create a subshell by forking. input is nonzero if the input to this process is a pipe that we've opened. At the end of a multi-stage pipeline, it will necessarily be nonzero. Note that several of the tests may appear bizarre, since most developers do not place useless variable assignments directly at the end of a pipeline. However, as the function tests demonstrate, there are cases where assignments may occur when a shell function is used at the end of a command. The remaining assignment tests simply test additional cases, such as the use of local, that would otherwise be untested.
* unposted: README: Document incompatibility caused by workers/43928dana2021-04-101-0/+4
|
* 47830: Fix some documentation typosLawrence Velázquez2021-02-161-6/+6
|
* 47997: Disable XTRACE around user-defined completion widgets.Bart Schaefer2021-02-111-0/+3
|
* 46068 (tweaked) (was: github #57): region_highlight: Add memo= support.Daniel Shahaf2020-06-251-0/+9
| | | | | | | | | | | | | | | | This is useful when multiple plugins add region_highlight entries and subsequently want to remove only their own entries. Without this functionality, recognizing one's region_highlight entries is not trivial because the 'start' and 'end' offsets are modified by editing of $BUFFER and the highlight specification may not be unique or distinctive. The tweaks are as follows: - Change zfree() to zsfree() per workers/46070. - Remove the mem.c hunk, as it changed the signature of only one out of two alternative definitions of zsfree(). (The definition that hunk touched is the one that's not used by default.)
* 45737 (+ docs, and update the test from 45722): zstyle: When determining the ↵Daniel Shahaf2020-05-021-0/+19
| | | | weight (specificity) of a pattern, consider the number of components before anything else, as documented.
* unposted: README: Give the 'zsystem flock' limit in pretty-printed form as well.Daniel Shahaf2020-04-211-1/+1
|
* unposted: NEWS, README: Document zsh/system changes from workers/45708dana2020-04-201-2/+5
|
* 45583/0009: Add end-of-options guard support to 'function -T'.Daniel Shahaf2020-03-221-6/+17
|
* 45583/0008: Add the 'function -T' syntax.Daniel Shahaf2020-03-221-0/+7
| | | | Config/version.mk was bumped in the previous commit.
* 45543: vcs_info quilt: Allow quiltcommand to be a function.Daniel Shahaf2020-03-151-0/+5
| | | | Before this commit, it could only be an external command.
* unposted: Move a new incompatibility notice. 5.9Daniel Shahaf2020-03-071-2/+5
| | | | | | The change in question was (deliberately) not merged to master before the 5.8 release. Therefore, it is a "post 5.8" change, even though it was written when 5.7.1 was the latest release.
* Merge remote-tracking branch 'origin/master' into 5.9Daniel Shahaf2020-03-071-2/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Test/D02glob.ztst: On the "unreadable directories can be globbed (users/24619, users/24626)" test, resolve conflicts by removing the Cygwin-only skip that has been added in master, since the test is passing on this branch. This effectively reverts workers/45492. See discussion starting in workers/45504. * origin/master: unposted: Remove 'sgi', as that OpenBSD port has been discontinued. 45509: fix typos in B01cd.ztst 45490 (+45495 and a test): refactor rlimits.c github #49: Fix typo: longson should be loongson users/24710: Fix job control problem with sudo. 45492: skip test added by users/24633 on Cygwin 45488: COMP_WORDS for bash need "$@"-style quoting 45487: Missing mod_export declarations for AIX 45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function. 45463: test: kill: Document why we use SIGURG 45453: builtins: kill: Do not signal current process group when pid is empty 45452: builtins: kill: Add `kill ''` regression test with explicit sigspec 45451: builtins: kill: Add basic test suite github #48/0002: vcs_info git: properly detect bare repositories github #48/0001: vcs_info git: avoid warnings in bare repositories unposted: Post-release version bump unposted: Release 5.8 CVE-2019-20044: Update change log for preceding commits Update NEWS/README Add unsetopt/PRIVILEGED tests Clean up error-message white space Improve PRIVILEGED fixes (again) Improve PRIVILEGED fixes Drop privileges securely unposted: V01zmodload: Fix failing test from workers/45385 45423: _su: Improve arg handling, shell look-ups unposted: _zip: Recognise '--' 45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features. unposted: Test release: 5.7.1-test-3 zsh/system: Fix infinite loop in sysread _diff_options: Restore -w completion lost in workers/43351 unposted: Fix ChangeLog typo. 45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh. 45373: Fix ERR_EXIT bug in else branch of if. 45372: Record a symlink loop bug involving :P 45365: _git: Fix __git_recent_branches for the case when a commit has an empty message 45343: Queue signals around arithmetic evaluations 45344: Document where third-party completion functions should be installed. 45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload unposted: internal: Add some comments and fix indentation. No functional change. 45340: internal: Document the difference between paramtab and realparamtab. 45332: _git: add completion for git-version _brace_parameter: add missing \ Conflicts: ChangeLog Test/D02glob.ztst Test/V01zmodload.ztst
| * Update NEWS/READMEdana2020-02-141-2/+9
| |
* | 45213: Make --enable-gdbm default to false, rather than default to true with ↵Daniel Shahaf2020-01-061-0/+4
|/ | | | an unavoidable warning.
* unposted: Test release: 5.7.1-test-1 zsh-5.7.1-test-1dana2019-12-141-3/+6
|
* 45003: Fix more documentation typosMartijn Dekker2019-12-111-4/+4
|
* 44958: vcs_info quilt: Avoid forksDaniel Shahaf2019-11-291-0/+4
|
* 44435: Handling digita arguments for :h and :t.Peter Stephenson2019-06-201-1/+20
| | | | | | | Pick number of leading or trailing path components to substitute. Active in history, brace parameters, glob qualifiers. Add tests for all three environments.
* unposted: Release 5.7.1 zsh-5.7.1dana2019-02-031-1/+1
|
* unposted: Release 5.7 zsh-5.7dana2019-01-241-1/+2
|
* 43944: apply NO_UNSET consistently to arithmeitcMartijn Dekker2018-12-301-0/+4
|
* unposted: updates for 5.6.2-test-2 zsh-5.6.2-test-2Peter Stephenson2018-12-191-12/+9
|
* 43620 (tweaked): vcs_info git: Reverse the order patches are passed to ↵Daniel Shahaf2018-10-081-1/+15
| | | | | | | | gen-unapplied-string in. This is an incompatible change; see README for details. Tweaks (relative to posted version): tweaked README, removed scalpel (debug print).
* 43457: Release 5.6.2 zsh-5.6.2Daniel Shahaf2018-09-141-2/+3
|
* unposted: Patch release: 5.6.1 zsh-5.6.1Daniel Shahaf2018-09-081-3/+2
|
* CVE-2018-0502, CVE-2018-13259: Fix two security issues in shebang line parsing.Anthony Sottile2018-09-031-3/+3
| | | | | | See NEWS for more information. Patch by Anthony Sottile and Buck Evan.
* Test release: 5.5.1-test-2. zsh-5.5.1-test-2Daniel Shahaf2018-08-251-2/+2
|
* unposted: Test release: 5.5.1-test-1. zsh-5.5.1-test-1Daniel Shahaf2018-08-251-4/+3
|
* 23519: Use tag remote-files for remote filesPeter Stephenson2018-06-291-1/+9
|
* unposted: Update for release 5.5.1. zsh-5.5.1Peter Stephenson2018-04-161-2/+3
|
* 42505 (corrected): prepare for 5.5 release zsh-5.4.2-test-1Peter Stephenson2018-03-251-5/+6
|
* 42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather ↵Daniel Shahaf2017-11-241-0/+12
| | | | than a syntax error.
* 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.Peter Stephenson2017-10-021-1/+25
| | | | Initialised from existing configuration value.
* Updates for ksh array element syntax.Peter Stephenson2017-09-241-0/+11
| | | | | | | | Move detection of key/value pairs down into prefork(). Detect normal array assignment and [key]=val array assignemnt separately. Mark key / value pairs with Marker and pass up flag. Deal with marked triads specially later on.
* 41599: info updates for 5.4.2Peter Stephenson2017-08-251-5/+5
|
* 41590 modified as 41595: make ERR_RETURN more logical.Peter Stephenson2017-08-241-0/+13
| | | | | | | | It now operates separately at each function depth. To keep ERR_EXIT global, make the noerrexit variable usd bit flags. Extend tests.
* unposted: fix README typoPeter Stephenson2017-08-091-1/+1
|
* unposted: update to 5.4.1 zsh-5.4.1 5.4.1Peter Stephenson2017-08-081-4/+5
|
* unposted: update distribution docs for 5.4 release.Peter Stephenson2017-07-291-5/+5
|
* 41275: Leave stdin open when executing widgetsStephane Chazelas2017-06-131-0/+6
|
* 40510: vcs_info: Update the $psvar episode with '%'-unescaping. (Follow-up ↵Daniel Shahaf2017-02-091-0/+3
| | | | to 40492.)
* 40492: vcs_info: Escape '%' signs in payloads.Daniel Shahaf2017-02-091-0/+9
| | | | | Test case: a patch whose subject is '%Sfoo%sbar'. ('S' and 's' are expandos both in prompts and in the 'formats' style.)
* Add features associated with autoloading a function using an absolutePeter Stephenson2017-01-111-3/+13
| | | | | | | | | | | | | path. -d defaults to normal fpath -r remembers the path without actually loading. May be combined with -d. -R does the same but it's an error if not found -X can now take a directory path: this is used to output not yet loaded functions that have an associated path.
* 40306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson2017-01-101-6/+25
| | | | | | | definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again.
* unposted: Release 5.3.1 zsh-5.3.1Peter Stephenson2016-12-211-4/+4
|
* 40066: updates for 5.3 releasePeter Stephenson2016-12-021-3/+3
|
* 40032: consistency in handling of subscript slices outside the bounds of an ↵Barton E. Schaefer2016-11-291-0/+39
| | | | | | array parameter unposted: README: example describing 40032