1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-03 22:27:13 +02:00
Commit Graph

222 Commits

Author SHA1 Message Date
Oliver Kiddle cd5ae4a909 unposted: remove reference to fp_PROG_CC_STDC macro which was removed in 52750 2024-03-20 23:35:05 +01:00
Oliver Kiddle 57248b8883 52750: remove ansi2knr support for old pre-ansi K&R compilers 2024-03-18 20:02:34 +01:00
Bart Schaefer d7cf4f25eb 52509: manage internals of stdio objects when performing redirections. 2024-01-28 17:14:23 -08:00
Florian Weimer 4c89849c98 52383: Avoid incompatible pointer types in terminfo global variable checks 2023-12-13 11:49:19 +01:00
Oliver Kiddle 0b5850c162 52394: alter form of /dev/fd test to work where /bin/sh is ksh such as on Solaris 11 2023-12-13 11:45:38 +01:00
Oliver Kiddle 618f842b46 52326, 52372: add -q option to kill for sigqueue 2023-12-05 18:51:33 +01:00
Jun-ichi Takimoto 10bdbd8b5b 51877: do not build pcre module if pcre2-config is not found 2023-06-20 18:14:27 +09:00
Jun-ichi Takimoto ecd3f9c950 51862: support texinfo-7.0 2023-06-19 11:19:25 +09:00
Oliver Kiddle b62e911341 51723: migrate pcre module to pcre2 2023-05-13 00:53:32 +02:00
Jun-ichi Takimoto e5f8cc99f5 51639: new parameter ZSH_EXEPATH (full path of zsh executable)
The full pathname is obatined by a reliable method on macOS and systems
that support procfs. But on other systems (FreeBSD, OpenBSD, ...) it is
guessed from argv[0], PWD and PATH.
2023-04-11 22:10:33 +09:00
Jun-ichi Takimoto c006d76097 51604: %M in TIMEFMT should report in kilobytes 2023-03-30 14:58:07 +09:00
Oliver Kiddle a73c705b0c 51212: remove STOUC() macro
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
2022-12-16 23:28:10 +01:00
Nicholas Vinson ab4d62eb97 50641: use 'int main()' in test C-codes in configure 2022-09-21 09:22:11 +09:00
Jun-ichi Takimoto ac6257f150 50418: use setenv(3)/getenv(3) on newer macOS 2022-07-24 20:41:20 +09:00
Peter Stephenson e4557ef852 50287: Use getcwd by default. 2022-05-26 09:33:43 +01:00
Bart Schaefer df0c783f4b 50133: use read-ahead and lseek-rewind for efficient line-buffered input 2022-04-28 21:06:51 -07:00
Oliver Kiddle 6de4bcfcd5 49634, reported by Claes Nästén: revert 28989
Defining _POSIX_C_SOURCE caused issues on Solaris 10 but doesn't seem
to be needed for musl anymore
2021-12-13 20:44:59 +01:00
Oliver Kiddle 07c77dad50 49606: remove old NIS-specific code for retrieving user data 2021-11-28 20:55:02 +01:00
Oliver Kiddle 2947130f91 49537: fix finding utmpx file on FreeBSD 2021-11-02 21:28:40 +01:00
Han Pingtian 8bdbc61497 33465: use prctl() for "jobs -Z" where available
Bart apologizes for waiting 7 years to apply this change.
2021-05-15 14:23:28 -07:00
Felipe Contreras df48cc8404 47785: remove deprecated autoconf functions
STDC_HEADERS and TIME_WITH_SYS_TIME are deprecated.
2021-04-09 21:45:11 +02:00
Peiyuan Song bf8ca5f019 47840: make zpty module work on Cygwin 2021-01-20 13:33:52 +09:00
Jun-ichi Takimoto bd647c1565 47560: add includes/prototypes for tests in configure
On macOS 11.0 it is now an error to use a function without prototype.
2020-11-16 20:59:51 +09:00
Yasuhiro KIMURA a44f44d6e6 45950: Fix 'make install' in out-of-tree tarball builds.
See workers/45936 for the failure mode and workers/45943 for an earlier
revision of the patch.
2020-06-03 01:15:22 +00: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
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
Jun-ichi Takimoto 273da6cc5f 45490 (+45495 and a test): refactor rlimits.c
Use a table of known resouces instead of generating rlimits.h by
rlimits.awk.
2020-03-06 20:12:06 +09:00
Daniel Shahaf 8250c5c168 Improve PRIVILEGED fixes
- Fix retval handling in bin_setopt()

- Don't skip_setuid / skip_setgid.  It's not our place to optimize away noops
  (that might not even _be_ noops; they might change the saved uid…).

- Remove HAVE_* guard checks around functions that are used unguarded elsewhere.

- Use bsd-setres_id.c from OpenSSH to provide setresuid() / setresgid()
  everywhere, and thus simplify the ifdef soup.  Fix some preëxisting
  bugs in the macro definitions of setuid() (do we still need that one?).

- Fix zwarning() format codes for variadic arguments type safety

- Restored a comment from HEAD

- Fix failure modes around initgroups()

- Compared privilege restoration code with OpenSSH's permanently_drop_uid() and
  updated as needed

- Add E01 PRIVILEGED sanity checks
2020-02-14 16:06:57 -06:00
Sam Foxman 24e993db62 Drop privileges securely 2020-02-14 16:06:57 -06:00
Daniel Shahaf e899c21863 Merge remote-tracking branch 'origin/master' into 5.9
Right now, as we're preparing to tag the 5.8 release, the 5.9 branch is
maintained as a topic branch off master.

* origin/master:
  45287: zshexpn: Describe parameter elision and add some introductory prose
  45302: bin_umask(): Queue signals around umask().
  users/24656: docs: Add an example of setting and querying zstyles
  users/24659: Cross-ref doc for matchers.
  45296: D02glob: Clean up after test from users/24633
  45290: New helper script for listing XFail tests.
  users/24633: Add an xfail test for users/24619.
  unposted: additional typo fix
  45280: _git: add -local variants
  users/24628 (fixed): More doc for selectw-word-style widgets.
  45266: Fix losetup completion, broken in da085b7a20 (41720).
  unposted: Fix punctuation.
  use /dev/fd on Cygwin for process substitution
  unposted: Two additional typo fixes.
  Fix typos reported by codespell in shell code
  Fix typos reported by codespell in Src/
  45269: Fix misspellings in completions and elsewhere.
  45261: _gcc: Detect clang-as-gcc
  unposted: internal: Remove Vim modeline that interferes with ztst.vim.
  unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting.
  unposted: internal: zyodl.vim: Support glob qualifiers in example()'s
  unposted: internal: zyodl.vim: Support yodl comments.
  github #44: Allow completion for picocom to list symlinks to character devices
  45245: _gcc: add some clang specific warnings
  45231: _rsync: When completing remote modules, ignore more of the motd.
  unposted: _tac: Eliminate superfluous variable
  45226: _man: Improve completion of file paths
  45184: Clarify documentation of %-sequences understood by compadd -[Xx]
  45239: Remove 'appendhistory' from zsh-newuser-install
  45218: add more options to swaks completion
  45196: fix completion after make -C, allowing for -C being used multiple times
  unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)".
  45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a potential match.
  45183: Improve documentation examples
  unposted: Add some tests for ${(S)}, including a regression test for workers/45164.
  45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
  45169/0001: In the test suite, allow test cases to be marked as expected to fail.
  users/24582 + users/24583: Add regression tests for the previous commit.
  24581: Fix array assignments in shell word splitting and completion.
  45160: zshexpn: Expand documentation of (S)
  45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b).
  unposted: internal: Vim ztst support: Add an ftplugin in addition to the syntax highlighter.
  45130: _multi_parts: Always pass -f to compadd if given by caller
  unposted: zerrmsg(): Fix macro guard missed in previous commit
  unposted: ChangeLog for last commit
  internal: Allow %L in zerrmsg() in non-debug builds, too.
2020-01-15 22:49:09 +00:00
Jun-ichi Takimoto 5d593cfd54 use /dev/fd on Cygwin for process substitution 2020-01-10 18:46:37 +09:00
Daniel Shahaf 8192043460 45246: Make --disable-multibyte warn, since the test suite fails in that configuration. 2020-01-06 14:05:21 +00:00
Daniel Shahaf 2dac9c5d20 45213: Make --enable-gdbm default to false, rather than default to true with an unavoidable warning. 2020-01-06 02:29:30 +00:00
Sebastian Gniazdowski 5be28dac5d 44865: Try harder to link in curses module 2019-10-28 11:51:29 +00:00
Jun-ichi Takimoto b82c24801f 44710: support RLIMIT_UMTXP on FreeBSD 2019-08-28 10:02:29 +09:00
Sebastian Gniazdowski 2e87c3f3fb 44712: Prefer any variety of ncurses to other terminal libraries.
We rely on its features to provide modules where it is available.
2019-08-27 10:35:07 +01:00
Jun-ichi Takimoto 947e26fe5a 44118: use libtirpc if RPC is not in glibc 2019-03-15 13:36:55 +09:00
Oliver Kiddle 43e9a1dc97 43357: isinf/isnan can be macros so need custom configure tests 2018-08-31 23:25:38 +02:00
dana b21a641d4c 43275: Add log2 to match func 2018-08-13 09:36:55 +01:00
dana 394f3a47e4 43075: Support nanosecond-precision time formatting
* Teach ztrftime() %9. and %N for nanoseconds
* Update prompt expansion to pass sub-second times for time formatting
* Update zsh/stat to pass sub-second times for atime/mtime/ctime

Patch heavily based on Oliver's earlier work @ workers/24059
2018-06-20 17:29:56 -05:00
Eitan Adler f311619e30 433029: Testing signal return type is no longer needed 2018-06-18 10:18:29 +01:00
Eitan Adler f9560cb03b 42862: Remove AC_PROG_TRADITIONAL from configure.ac.
We don't support machines that ancient any more.
2018-05-29 09:42:31 +01:00
Eitan Adler cfdd0bd9c7 42863: configure.ac update to latest autoconf conventions 2018-05-29 09:40:07 +01:00
Stephane Chazelas 5ac1c6f555 42790: make [[:blank:]] match non-ASCII blanks 2018-05-17 23:42:27 +02:00
Oliver Kiddle 373efa085d Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating point operations instead of errors to allow non-stop IEEE 754 arithmetic 2018-05-13 10:02:01 +02:00
Peter Stephenson 2c4ec9dab0 42623: Add some extra quotes to previous commit 2018-04-11 10:37:23 +01:00
Benedikt Morbach 66f0e5c1ac 42618: support signal names from multiple include files.
Needed for glibc starting with 2.25.
2018-04-10 17:52:35 +01:00
Peter Stephenson 174e560a23 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.
Initialised from existing configuration value.
2017-10-02 09:44:26 +01:00
Axel Beckert a0f33b5a6b 41342: check for Yodl version 4 2017-06-22 10:06:39 +01:00
Jun-ichi Takimoto 171e7fa4c1 41090: Replace iswprint() if unicode9 is enabled.
If wcwidth() or iswprint() is broken, force enable unicode9.
2017-05-12 12:10:13 +09:00