1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-19 15:41:32 +02:00
Commit graph

3142 commits

Author SHA1 Message Date
Jun-ichi Takimoto
2e69ece5cf users/20455: do not use posix_openpt() on OpenBSD 2015-08-23 14:31:56 +09:00
Barton E. Schaefer
43079e5d8e 36274: clear virangeflag when getvirange() has an error (the next keystroke is not a motion/selection). 2015-08-22 21:54:31 -07:00
Barton E. Schaefer
1cfe4ca192 36273: teach endofline() and endoflinehist() about invicmdmode() cursor placement. 2015-08-22 21:50:31 -07:00
Barton E. Schaefer
8abe1496fb 36256: local options should remain in effect for "emulate -L" even if additional option settings are applied 2015-08-21 13:38:19 -07:00
Peter Stephenson
881474edcb unposted: fix up for 5.0.8-test-2 2015-08-21 21:33:37 +01:00
Peter Stephenson
f4c37a78b1 36265 plus FAQ: fix alias expansion after "function"
Owing to interesting historical parsing, names after the first
were treated as command words so had non-global aliases expanded.
Add an FAQ note that use of the function keyword works around
other alias problems
2015-08-21 16:55:10 +01:00
Peter Stephenson
c0df3440a4 36264: glob and pattern variable pathbuf is metafied.
Document this and unmetafy it when passing to system calls, including
lchdir() which is a system-level interface.
2015-08-21 15:17:18 +01:00
Peter Stephenson
61afb8dc8d 36262: Replace fix for missing unmeta in chdir().
It was needed in the argument to one of a pair of lchdir()s rather
than within zchdir().

Add tests for the case of a character with 0x83 within it.
2015-08-21 10:04:13 +01:00
Peter Stephenson
34be0f1fe5 36232: Unmeta needed in chdir() in zchdir() 2015-08-18 17:46:27 +01:00
Peter Stephenson
f8164fb647 36227: attempt to fix metafication problem with ztrftime.
fmt is treated as metafied on entry; use returned length to ensure
we metafy or output the correct length if there are embedded nulls.
2015-08-18 16:20:48 +01:00
Peter Stephenson
5292d60eb1 Revert "36222: unmetafy output from strftime"
This reverts commit 8141a3d850.
2015-08-18 14:27:42 +01:00
Peter Stephenson
8141a3d850 36222: unmetafy output from strftime 2015-08-18 12:36:51 +01:00
Peter Stephenson
770beb5816 36218: use unmetafied file name for mkdir system call 2015-08-18 11:10:54 +01:00
Daniel Shahaf
fa573a3579 36109: bracketed-paste: change quoting style 2015-08-17 21:53:16 +00:00
Barton E. Schaefer
5d019f426a 36180: avoid infinite job stop/continue loop on "wait PID" for a background job 2015-08-15 10:15:30 -07:00
Daniel Hahler
5f8a18a561 unposted: fix minor typos 2015-08-14 02:35:32 +02:00
Oliver Kiddle
832130c57d 36131: make use of undo limits; call mkundoent() when $UNDO_CHANGE_NO is referenced for a clear change number marking the current state 2015-08-13 16:18:26 +02:00
Kamil Dudka
51d2c66341 36106: fix const parameter to bindkey 2015-08-12 20:08:58 +01:00
Oliver Kiddle
4f509c6201 36125: don't set history context in get-line 2015-08-12 18:06:01 +02:00
Oliver Kiddle
f17eb26a34 35834: strip a final newline from pasted text: inserting is hard to tell apart from accepting it 2015-08-12 18:05:59 +02:00
Barton E. Schaefer
128bf385b1 36104: change order of child_block() and dont_queue_signals() to resolve yet another race condition 2015-08-11 08:55:23 -07: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
Barton E. Schaefer
1af2e6e02d 36090: keep signals queued for preprompt() 2015-08-11 08:55:23 -07:00
Oliver Kiddle
5ee4cc8c09 36096: special . mark in vi mode 2015-08-11 13:44:32 +02:00
Oliver Kiddle
3183cbd98c 36044: deactivate-region widget for escape in visual mode 2015-08-11 13:28:14 +02:00
Jun T
0f224e72cc 35952: bind escape in vi mode so it is a full key sequence and later keys aren't dropped 2015-08-11 13:22:45 +02:00
Barton E. Schaefer
45424e735d 36084: use zrealloc() consistently 2015-08-10 12:55:56 -07:00
Barton E. Schaefer
93ca77f8f7 36079: do not allow update_job() and its helpers to run the signal queue while we are processing a job exit. 2015-08-10 12:54:05 -07:00
Peter Stephenson
6fa8708bfc 36083: set array value when consistently retying scalar and array 2015-08-10 20:30:09 +01:00
Peter Stephenson
a07f74fadd Don't rely on implicit value when saving background process status 2015-08-10 16:59:55 +01:00
Peter Stephenson
cbdb3cf9be not quite posted: check for error return before EINTR 2015-08-10 13:44:12 +01:00
Joshua Krusell
9728f535e2 36039: Restart socket commands on EINTR 2015-08-10 12:32:33 +01:00
Barton E. Schaefer
df5f825538 36033: a few more queue_signals() to protect global state changes 2015-08-09 17:37:23 -07:00
Barton E. Schaefer
a88415cbf7 36026: zero freed pointers in zftp cleanup_() in case the module is re-loaded after unloading 2015-08-09 16:13:52 -07:00
Barton E. Schaefer
9958684574 36022 fix bug that some loop constructs could not be interrupted, revise 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.
2015-08-09 16:13:52 -07:00
Peter Stephenson
17d52d69ec Fix retying variables in opposite order.
Now gives an error.
Add test.
2015-08-09 19:10:01 +01:00
Peter Stephenson
249999cfb4 36025: Fix completion aftoer "foo=bar; setopt ".
Done by catching a case that doesn't seem to be handled otherwise,
so there's some hope it doesn't screw up too much.
2015-08-09 18:40:54 +01:00
Daniel Shahaf
1122d83a6e 36008: trap: Fix listing of traps created under non-alias non-canonical signal spelling 2015-08-08 21:43:49 +00:00
Jun-ichi Takimoto
b0ebabdc65 35929: protect FDT_PROC_SUBST by #ifdef 2015-08-09 00:06:57 +09:00
Jun-ichi Takimoto
d09dc4562a 35928: '%-m' should work even if not supported by strftime(3)
Also clarify document.
2015-08-08 03:39:51 +09:00
Daniel Shahaf
32669e77f4 unposted: Typo fix. 2015-08-04 10:41:25 +00:00
Oliver Kiddle
3d9a8073c2 35963: simplify condition found by coverity to include tautology 2015-07-31 15:01:30 +02:00
Barton E. Schaefer
c0a80171ee 35953: fix handling of command substitution in math context 2015-07-29 22:36:45 -07:00
Peter Stephenson
b3aa3b7791 35910: Don't add to raw lex buffer if lex stopped.
This was causing a segmentation violation in completion when parsing
an incomplete math expression, e.g. 'echo $((3*4)<TAB>'.
2015-07-25 21:50:55 +01:00
Peter Stephenson
dd8079e041 35809: fix $((...)) completion by _expand widget.
This changes internal quoting of the form still including tokens
not to add unnecessary internal backslashes.
2015-07-25 21:36:54 +01:00
Peter Stephenson
771381c2ce 35908: fix $((...)) completion in expand-or-complete widget 2015-07-25 20:22:23 +01:00
Barton E. Schaefer
84495e3415 35882: read-command has ZLE_NOTCOMMAND 2015-07-24 17:04:30 -07:00
Oliver Kiddle
0f02b27ab0 35864: add sysopen, sysseek and systell to system module 2015-07-24 12:36:35 +02:00
Peter Stephenson
8f8b82bc6c 35883: Don't attempt to back up over history if expanding alias 2015-07-24 10:19:00 +01:00
Peter Stephenson
bbd4cae6ad 35872: protect against NULL pointers in unmeta 2015-07-23 10:04:09 +01:00