Commit graph

11199 commits

Author SHA1 Message Date
Daniel Shahaf 32c4ed3977 45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully.
Have V01zmodload.ztst check that all modules enabled in config.modules
load successfully.  With this change, the test files for individual
modules may assume that if 'zmodload' fails that must be because the
module hadn't been compiled in, and mark themselves as skipped in that
case.
2020-03-27 01:14:42 +00:00
Peter Stephenson 2a9674862e 45616: Remove token from count argument to repeat 2020-03-26 20:54:37 +00:00
Daniel Shahaf fc286a7c11 45583/0008: Extend tests to prove that what remains of xsymlinks() handles symlink loops gracefully. 2020-03-25 23:49:02 +00:00
Daniel Shahaf dabfd1f1fb 45583/0007: Remove code that is now unreachable. 2020-03-25 23:49:02 +00:00
Daniel Shahaf 12347c26ce 45583/0006: Don't use xsymlinks() in 'whence -s'. 2020-03-25 23:49:02 +00:00
Daniel Shahaf db8d16a060 45583/0005: Add a test for bin_whence's symlinks resolution. 2020-03-25 23:49:02 +00:00
Daniel Shahaf 47fc5fe01f 45583/0004: Fix segfault on resolving symlink loops 2020-03-25 23:49:02 +00:00
Daniel Shahaf 12414d8052 45583/0003: chrealpath: Let caller decide how the return value should be allocated. 2020-03-25 23:49:01 +00:00
Daniel Shahaf 38b0e1ff7e 45583/0002: chrealpath: Make symlink resolution optional. 2020-03-25 23:49:01 +00:00
Daniel Shahaf de587b43ba 45583/0001: Add tests for the segfault on resolving a symlink loop bug (workers/45282).
This is workers/45377, extended.
2020-03-25 23:49:01 +00:00
Daniel Shahaf 0903ddb7b9 45590/0002 (in part): zsh/rlimits: Test that ulimit letters are unique. 2020-03-25 22:06:47 +00:00
Jun-ichi Takimoto 88484e9ea8 45601: fix another status in new function -T test 2020-03-25 15:55:19 +09:00
Rin Okuyama aa93901db2 github #51: Fix configure for cross build.
In order to detect equivalence b/w various rlimit values, use compile
tests instead of run tests. This enables configure script to run in
cross-build environment without any side effects.

From NetBSD/pkgsrc:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/shells/zsh/patches/
2020-03-22 23:22:38 +00:00
Peter Stephenson 508b47c750 45601: Fix status in new functions -T test 2020-03-22 18:56:06 +00:00
Peter Stephenson 2b1e5a3d22 45563: %z can be used for zlong in warnings and errors 2020-03-22 18:45:02 +00:00
Daniel Shahaf aed0cb4408 45583/0009: Add end-of-options guard support to 'function -T'. 2020-03-22 02:23:53 +00:00
Daniel Shahaf 386d9ac8ff 45583/0008: Add the 'function -T' syntax.
Config/version.mk was bumped in the previous commit.
2020-03-22 02:23:53 +00:00
Daniel Shahaf a3c6c5513d 45583/0007: WC_FUNCDEF: Add a placeholder element. 2020-03-22 02:23:53 +00:00
Daniel Shahaf fd1ef7d770 45583/0006: internal: Add some comments for orientation. No functional change. 2020-03-22 02:23:53 +00:00
Daniel Shahaf e37df255c1 45583/0005: internal: Document the WC_FUNCDEF data layout for anonymous functions with arguments (follow-up to 29492) 2020-03-22 02:23:52 +00:00
Daniel Shahaf 338a4a299a 45583/0004: internal: Add some comments around wordcodes. No functional change. 2020-03-22 02:23:52 +00:00
Daniel Shahaf 4960699de2 45583/0003: internal: Add some comments around Eccstr. No functional change. 2020-03-22 02:23:52 +00:00
Daniel Shahaf be73026b07 45583/0002: internal: Reduce some variables' visibility. No functional change. 2020-03-22 02:23:52 +00:00
Daniel Shahaf e94e828efd 45583/0001: internal: Remove a redundant assignment.
The value is overwritten five lines below, without being read in the interim.
2020-03-22 02:23:52 +00:00
Daniel Shahaf fb3ef09f2d unposted: Deconfuse $EDITOR's balanced braces mode. No functional change. 2020-03-20 18:05:24 +00:00
Daniel Shahaf 68d2a1bc22 unposted: ${(Z)}: Convert documentation to a description block. 2020-03-20 02:28:11 +00:00
Daniel Shahaf 65f8e90f0d unposted: internal: ztst.vim: Make sure syntax elements are only hidden if they're followed by something visible 2020-03-20 01:44:06 +00:00
Daniel Shahaf b13e8d16cf unposted: Specify tabs for Makefiles. 2020-03-18 18:18:26 +00:00
Daniel Shahaf a30da73187 45572: _sshfs: Complete some more options 2020-03-17 14:03:50 +00:00
Jun-ichi Takimoto 0bc1edef5a 45536: fix handling of 8bit character under C-locale
correctly escape unprintable 8bit character by using \M-
2020-03-17 15:11:04 +09:00
Daniel Shahaf e5765bfdc8 45541: internal: vcs_info git: Add a test case repository for rebase-apply situations 2020-03-15 00:18:31 +00:00
Daniel Shahaf 4ce4483daf 45539: vcs_info git: In non-interactive rebases, obtain applied patches' names. 2020-03-15 00:18:30 +00:00
Daniel Shahaf e1946bacf8 45540: vcs_info git: In non-interactive rebases, compute patch names for unapplied patches. 2020-03-15 00:18:28 +00:00
Daniel Shahaf 5a1f5cf8ab 45543: vcs_info quilt: Allow quiltcommand to be a function.
Before this commit, it could only be an external command.
2020-03-15 00:18:27 +00:00
Daniel Shahaf 8e128afb2c 45547: vcs_info git: In interactive rebases, process gen-unapplied-string arguments like gen-applied-string arguments are processed.
I consider this a bugfix, since it's unexpected for -applied and
-unapplied to differ about this.
2020-03-15 00:18:25 +00:00
Daniel Shahaf c756545014 45546: vcs_info git: In interactive rebases, properly support the full form of the "exec" verb.
The code before this commit happened to have done the right thing:
"exec" lines were handled by the catchall forward compatibility case,
which happened to have had virtually the same effect as the correct
case.  However, that was merely an accidental result.  This patch makes
the code do the right thing deliberately, rather than by accident.
2020-03-15 00:18:23 +00:00
Daniel Shahaf af57462beb 45545: vcs_info git: In interactive rebases, ignore comment lines. 2020-03-15 00:18:21 +00:00
dana 754658aff3 unposted: _git: Fix copy/paste error in earlier commit that broke git stash drop
This was broken by workers/44923 (8aa84bd5fc)
2020-03-13 09:46:14 -05:00
dana cb7aadfd2a 45535: _lz4: Order compression levels numerically 2020-03-13 09:38:25 -05:00
dana c2e46ee43b 45534: _hdiutil: Update image-file extensions, image/disk formats, &c. 2020-03-13 09:38:23 -05:00
dana 3f7b81e24e 45531: _sh: Complete options more accurately
Committing without handling of +x option variants (line 10) pending resolution
of workers/45422
2020-03-13 09:37:37 -05:00
dana 778f391a3b 45537 (tweaked): E02xtrace: Fix inconsistent function-name encoding in preserves-xtrace test
Tweaked per workers/45550, needs workers/45536 to be effective
2020-03-13 08:49:57 -05:00
Daniel Shahaf fd627a504f unposted: .editorconfig: Specify spaces rather than tabs for zsh scripts.
Also specify indent level for vcs_info.
2020-03-12 17:44:27 +00:00
dana 80ddc46e54 45470: C02cond: Simplify '-N cond' test
This fixes an (intermittent?) issue with the test on macOS+APFS, and hopefully
makes it simpler and faster in general
2020-03-11 21:17:12 -05:00
dana 359e0dae2b 45424: completion: Add **/sbin to PATH when completing commands like sudo
* Update _command_names to add **/sbin to PATH when not otherwise overridden
  and _comp_priv_prefix is set. This ensures that, on systems where
  unprivileged users don't have **/sbin in their PATHs, we can still complete
  those commands when they try to run them with e.g. sudo

* Update functions for privilege-gaining commands to use the aforementioned
  mechanism

* Fix some other minor issues in _pfexec and _doas

Changes from the posted diff:

* Fix a minor redundancy in _doas

* Add _c_p_p=( '' ) hack to _su
2020-03-11 16:26:41 -05:00
Romain Porte 0d7f888945 45524: Add completion for dscverify(1) from Debian's devscripts. 2020-03-10 15:31:24 +00:00
Daniel Shahaf 1602016d53 45518 + unposted tweak (change single quotes to double quotes): Fix V01zmotload.ztst test failures when zsh/parameter is dynamically linked (which is the default). 2020-03-09 01:56:26 +00:00
Daniel Shahaf b5f05b29ba Merge remote-tracking branch 'origin/5.9'
* origin/5.9:
  unposted: Move a new incompatibility notice.
  unposted: Fix trailing whitespace in test expectations.
  45342: Add tests for interaction between autoloadable parameters and module loading.
  45313: _git: Support completion from outside of a worktree when --git-dir/--work-tree are specified on the command line
  45304: Do execute the always block even when the try/always block itself is the last command.
  45292: D02glob: Add regression test for macOS stat(2) misbehaviour
  45291: A glob with a trailing slash will now match unreadable/unexecutable directories.
  45288: _git: Complete bisect/new as well as bisect/bad.
  45246: Make --disable-multibyte warn, since the test suite fails in that configuration.
  45213: Make --enable-gdbm default to false, rather than default to true with an unavoidable warning.
  unposted (follow-up to 45131): Extra testing by Mikael
  45137: zformat: Allow the specifying minimum width and a dot with an empty maximum width.
  45138: Add zformat unit tests.
  45131: Make a function that redefines itself preserve its tracedness.
2020-03-07 21:50:46 +00:00
Daniel Shahaf 4ce0cff5e9 unposted: Move a new incompatibility notice.
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.
2020-03-07 21:50:26 +00:00
Daniel Shahaf 6fc8e8628f Merge remote-tracking branch 'origin/master' into 5.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
2020-03-07 21:36:46 +00:00