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
Peiyuan Song
bf8ca5f019
47840: make zpty module work on Cygwin
2021-01-20 13:33:52 +09:00
Daniel Shahaf
8bc4400762
45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change.
2019-12-17 05:12:36 +00:00
Peter Stephenson
95d861d028
42708: fix for process substitution.
...
Don't close associated file descriptors in the closem()
tidy up function as they should remain visible to external
processes. Override if about to exit.
Unit test for the failing case: note this relies on the
existence of /proc/self/fd or equivalent.
2018-04-24 11:48:11 +01:00
Thierry Ghelew
9f2271168d
41666: zpty compatibility for OpenBSD
2017-09-11 10:15:15 +01:00
Barton E. Schaefer
caddeca1ac
40483 (cf. Eric Freese: 40482): Remove zpty exit hook from forked processes
2017-02-01 17:11:48 -08: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
Jun-ichi Takimoto
ca3bc0d95d
37838: use UNUSED() consistently
2016-01-30 00:26:23 +09:00
Peter Stephenson
a5233fd01e
37378: New bindkey tests.
...
Also fix Meta bug on pattern match in zpty -r.
2015-12-10 17:51:41 +00:00
Peter Stephenson
04479a56e0
unposted: fix init_io() calls in previous change
2015-12-04 09:42:35 +00:00
Peter Stephenson
0628802baf
37014: Improved internal parameter setting.
...
Enhance WARNCREATEGLOBAL to work in many more cases.
Don't create REPLY as an integer if it didn't previously exist
as one, even if the value to be set is integral, as this is likely to
mess up later uses of REPLY.
2015-10-29 15:01:07 +00:00
Jun-ichi Takimoto
2e69ece5cf
users/20455: do not use posix_openpt() on OpenBSD
2015-08-23 14:31:56 +09:00
Barton E. Schaefer
a01f29c11d
36092: return the zpty master file descriptor in $REPLY for use with "zle -F" etc.
2015-08-11 08:55:23 -07:00
Oliver Kiddle
4804a7c5ff
35360 (replacing 35357): fix for configuring zpty on FreeBSD without
...
pty.ko loaded
2015-06-03 23:54:09 +02:00
Baptiste Daroussin
aab6bdc366
35357: FreeBSD needs HAVE_POSIX_OPENPT for zpty
2015-06-02 09:21:24 +01:00
Peter Stephenson
d067ebcacd
33876: etc.: Separate errors and keyboards interrupts
...
Combination of 12 commits from interrupt_abort branch.
Basic strategy is to introduce bits to errflag and to set and
reset them separately.
Remove interrupt status on return to main keymap.
Turn off ERRFLAG_INT for always block.
Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.
Add TRY_BLOCK_INTERRUPT
This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.
Ensure propagation of SIGINT from exited job.
If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.
Reset errflag before precmd()
Add always block in _main_completion to fix ZLS_COLORS
Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt. However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Oliver Kiddle
a526a2203b
33743: use posix_openpt in zpty if it is available
2014-11-24 00:05:59 +01:00
Jun T
feae6af6d2
32131: avoid infinite loop reading pty on platforms that do not buffer output after child exit
2013-12-16 22:15:08 -08:00
Peter Stephenson
b0a0441902
31672: Add test that was failing and fix zpty set-up race
2013-08-26 21:01:17 +01:00
Peter Stephenson
f75904a380
31665: zpty should attach terminal on slave.
...
Also add test.
2013-08-25 20:48:52 +01:00
Peter Stephenson
d89361739a
29165: use term.h globally if needed at all.
2011-05-09 09:49:08 +00:00
Peter Stephenson
09960dc5b9
27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt
2010-05-12 10:06:59 +00:00
Wayne Davison
693fd5b56e
Check the return value of all pipe(), read(), and write() calls.
...
Gets rid of all the remaining "ignoring return value" compiler
warnings, and makes some read/write operations safer by ensuring
that an EINTR is handled.
2009-12-16 18:39:06 +00:00
Peter Stephenson
51409732d0
27284: better use of movefd()
2009-09-22 09:17:05 +00:00
Peter Stephenson
e7c9e03c58
26301: make zpty -r exit more cleanly on bad reads
...
add option -m to make zpty -r return status 1 if pattern failed to match
use this option in comptest
2009-01-13 12:09:26 +00:00
Peter Stephenson
1e9b85e586
François Revol: some BeOS fixes
2008-11-18 10:14:35 +00:00
Peter Stephenson
59dd1491c6
users/13295, tweaked: dont reset line numbers when parsing strings, sometimes
2008-09-29 08:46:21 +00:00
Peter Stephenson
02e0a4755f
25040: zpty should display context information more like eval
2008-05-15 15:50:57 +00:00
Peter Stephenson
b5570971ef
24460: make zpty -rt more consistent by polling before every byte
2008-01-25 16:48:22 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +00:00
Oliver Kiddle
af31bd1741
Joerg Sonnenberger: 21252: Dragonfly BSD support
2005-05-11 09:27:05 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Peter Stephenson
89057ab512
19629: fix zpty on HP-UX
2004-03-16 19:52:52 +00:00
Wayne Davison
f75dc6bb86
Got rid of an unused-variable compiler-warning.
2004-02-26 20:48:09 +00:00
Peter Stephenson
2073eca9f3
19456: Fix ptmx tests, again.
2004-02-20 15:27:35 +00:00
Peter Stephenson
460e417caa
19429: configure test for ptmx
2004-02-17 13:53:36 +00:00
Peter Stephenson
590a26709a
18195: Timeouts for read builtin.
2003-02-05 11:56:55 +00:00
Peter Stephenson
9634760d5e
17582: Improved option argument handling.
...
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Clint Adams
c2c3e7e886
17297: 17265 continued.
2002-06-06 05:47:35 +00:00
Peter Stephenson
003ec8c7e8
15327: always use local LINENOs in parse_string().
2001-07-09 16:05:13 +00:00
Peter Stephenson
8ff0785863
Fixes from Andrej for zpty on cygwin
2001-05-08 10:26:58 +00:00
Sven Wischnowsky
326d682510
try to make the -t option of zpty smarter (13462)
2001-02-13 13:14:45 +00:00
Sven Wischnowsky
757168e2c8
remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365)
2001-01-16 13:44:18 +00:00
Sven Wischnowsky
2d77bd0d58
don't be sure that read-ahead doesn't contains nuls (13163)
2000-11-14 11:51:25 +00:00
Sven Wischnowsky
bbb0d75e25
use unmetafy() to allow writing special characters into a pty (13156)
2000-11-13 10:22:40 +00:00
Peter Stephenson
c292a3ae50
Sven: 13108: Handle traps synchronously
...
pws: 13109, 13111: clear up zle display when output produced in trap.
2000-11-11 19:50:27 +00:00
Sven Wischnowsky
468e3b59dc
*** empty log message ***
2000-11-08 15:27:54 +00:00
Bart Schaefer
12ca8495d4
Tweak interactiveness of cloned shell.
2000-11-06 06:41:59 +00:00