about summary refs log tree commit diff
path: root/Src/input.c
Commit message (Collapse)AuthorAgeFilesLines
* 50133: use read-ahead and lseek-rewind for efficient line-buffered inputBart Schaefer2022-04-281-1/+23
|
* 49792: Non-interative shell input is line buffered.Peter Stephenson2022-03-031-7/+14
|
* unposted: add 'static' to shinsavestackJun-ichi Takimoto2021-09-081-1/+1
|
* 49290: Replace stdio for buffered shell input.Peter Stephenson2021-08-271-11/+111
| | | | | | | The previous method allowed memory management to interact with signal handlers, causing occasional crashes on some system. Instead, use a simple pre-allocated buffer and raw system calls.
* 48504: use SEEK_ macros in fseek() callsOliver Kiddle2021-04-111-2/+2
|
* 43511: Initialiase alias entry on input stack.Peter Stephenson2018-09-211-0/+2
| | | | This didn't happen if neither history nor alias expansion was in use.
* 41322: reduce number of changes in signal queuing/blocking state during ↵Barton E. Schaefer2017-06-191-3/+5
| | | | shingetline() to improve read speed
* 40306 with doc tweaks: Change behaviour expanding alias in () function ↵Peter Stephenson2017-01-101-0/+27
| | | | | | | definition. Now an error unless the () is part of the same error as the name. Add ALIAS_FUNC_DEF option to allow it again.
* 40117: Revert a hunk of 40035 that changed semantics incorrectly.Daniel Shahaf2016-12-091-1/+1
|
* 40035: Cosmetic fixes for comments and documentation.Eitan Adler2016-11-291-1/+1
| | | | Mostly fixes to doubled words.
* 36022 fix bug that some loop constructs could not be interrupted, revise ↵Barton E. Schaefer2015-08-091-2/+10
| | | | | | | | | | | signal queueing There are two underlying ideas here: (1) Keeping signals queued around anything that's doing memory management (including push/pop of the heap) has become crucial. (2) Anytime the shell is going to run a command, be it buitin or external, it must be both safe and necessary to process any queued signals, so that the apparent order of signal arrival and command execution is preserved.
* 35910: Don't add to raw lex buffer if lex stopped.Peter Stephenson2015-07-251-1/+2
| | | | | This was causing a segmentation violation in completion when parsing an incomplete math expression, e.g. 'echo $((3*4)<TAB>'.
* 35668: Improved fix for command/proc subst starting in alias.Peter Stephenson2015-07-021-1/+1
| | | | | | Use input flag to suppress the unwanted backtracking. Add test for the extra case covered.
* 34784: fix old bug with history word selectionPeter Stephenson2015-03-261-9/+18
|
* 34752: another fix for history expansion in cmd substPeter Stephenson2015-03-201-2/+14
|
* Fix up memory allocation for previous patchPeter Stephenson2015-02-171-4/+5
|
* 34560: Fix $(( that's actually a multiline cmd subst.Peter Stephenson2015-02-161-2/+31
|
* 34543: Prevent crash on garbage bytes inside $(...)Barton E. Schaefer2015-02-141-2/+4
| | | | | | Garbage input (nul bytes, etc.) can cause the $(...) parser to become confused during look-ahead and attempt to back up the input too far. This commit catches the error but does not fix the underlying cause.
* 34220: new $(...) handling needs to back up over alias expansionPeter Stephenson2015-01-101-0/+6
|
* Fix command substitutions to parse contents as they are read in.Peter Stephenson2015-01-081-5/+8
| | | | | | | Do this by refactoring misnamed lexsave()/lexrestore() to allow continuity of history and input. Add test.
* 33876: etc.: Separate errors and keyboards interruptsPeter Stephenson2014-12-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 31869: reduce WINCH-twaddling in shingetline()Barton E. Schaefer2013-10-211-2/+4
|
* 31350: block SIGWINCH nearly all the time, exceptBart Schaefer2013-04-301-0/+2
| | | | | when about to calculate prompts or do synchronous read, so syscalls are not interrupted by window size changes.
* Paul 28538 / me 28540 / couple of unposted casts:Peter Stephenson2010-12-201-1/+1
| | | | use char * for pointer arithmetic rather than void *
* 27827: fix infinite loop in recursive alias at end of parsed stringPeter Stephenson2010-03-251-9/+12
|
* Joakim Rosqvist: 27591 as modified in 27594:Peter Stephenson2010-01-131-14/+26
| | | | KEYBOARD_HACK variable
* Check the return value of all pipe(), read(), and write() calls.Wayne Davison2009-12-161-1/+1
| | | | | | 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.
* 25345, 25347: neaten interface from main shell to zlePeter Stephenson2008-07-311-1/+2
|
* 25002: only ZLE should update attributes resulting from prompt expansionPeter Stephenson2008-05-121-1/+1
|
* 24699: bug with ${(Q)...} on initial ">"Peter Stephenson2008-03-081-0/+12
| | | | bug with ${(z)...} on string with unterminated "("
* 22474: use variable argument lists to improve error message handlingPeter Stephenson2006-05-301-2/+2
|
* Got rid of some unsigned-char/char pointer casts.Wayne Davison2005-11-151-2/+1
|
* c.f. 20675: improve zle as a basis for Unicode.Peter Stephenson2005-01-141-2/+2
| | | | unposted: update version to 4.2.3-dev-1
* 20149: improve prompt-reset codePeter Stephenson2004-07-111-6/+7
| | | | 20150: commit ancient memory leak fix(?) in completion
* 19295: $CONTEXT zle parameterPeter Stephenson2003-12-151-1/+4
|
* a la 19209: zcalloc -> zshcallocPeter Stephenson2003-10-291-1/+1
|
* 18941: history wrong after parse error during alias expansionPeter Stephenson2003-08-111-0/+14
|
* 18252: pass ignoreeof as flag to zlereadPeter Stephenson2003-02-171-2/+4
|
* 16492: add RPROMPT2 variable for right prompts in multi-line commandsOliver Kiddle2002-01-311-1/+4
|
* 16361: include <stdio.h> to avoid implicit declarations.Clint Adams2001-12-181-0/+4
|
* remove 13108 (trap queues); replace with signal queueing to ensure that user ↵Sven Wischnowsky2001-01-161-3/+1
| | | | signal handlers are only executed when it is safe to run them (13365)
* Sven: 13108: Handle traps synchronouslyPeter Stephenson2000-11-111-1/+3
| | | | pws: 13109, 13111: clear up zle display when output produced in trap.
* Removed the spaceflag variable.Wayne Davison2000-07-181-29/+41
|
* Initial revisionTanaka Akira1999-04-151-0/+530