1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 06:00:54 +01:00
Commit graph

1465 commits

Author SHA1 Message Date
Wayne Davison
41fb468fca Fixed a compilation problem when HAVE_GETRUSAGE is defined
but HAVE_WAIT3.  See the sourceforge bug report:
https://sourceforge.net/tracker/?func=detail&atid=104068&aid=1262954&group_id=4068
2006-03-27 11:41:17 +00:00
Peter Stephenson
8569055841 users/10087: no aliases for case of "in" in "case" 2006-03-26 19:03:15 +00:00
Wayne Davison
eafa96805b Fixed call to undefined function zwarnname() instead of zwarnnam(). 2006-03-25 18:50:44 +00:00
Peter Stephenson
16f7f6961f 22375, 22376: ${(0)...} splits on NULL byte 2006-03-22 18:32:46 +00:00
Peter Stephenson
7b7905fedb 22638: MACHINES: IRIX
users/10047: zle widget -K keymap
2006-03-21 19:19:05 +00:00
Clint Adams
7b92878c24 thinko fix 2006-03-20 15:22:55 +00:00
Clint Adams
8294310202 22371: use only alphanumerics and underscores as word characters with vi bindings. 2006-03-20 14:40:36 +00:00
Clint Adams
b37a0f0000 22366: better handling for multibyte-character-containing words in vi widgets. 2006-03-17 23:45:43 +00:00
Clint Adams
717c7c5532 22364: add 'nice' and 'rt_priority' rlimits (NICE and RTPRIO). 2006-03-17 23:35:01 +00:00
Wayne Davison
f3ef6af5b4 - Got rid of one compiler warning about a clobbered variable.
- Split a line that had two statements on it (looked like an
  accidental joining).
2006-03-13 22:25:16 +00:00
Wayne Davison
04ea7bae96 Fix some compiler warnings and ensure that zmod gets restored
properly in bin_zle_call().
2006-03-09 09:44:28 +00:00
Peter Stephenson
80ec63bfa7 22337: debugging code omitted from 22331 2006-03-08 15:50:50 +00:00
Wayne Davison
f8c7d72f30 Use the new "flags" integer to get rid of the mult_isarr global. 2006-03-07 22:05:51 +00:00
Wayne Davison
5fd72f0f1a Initialize the new "flags" integer when creating a list. 2006-03-07 22:05:44 +00:00
Wayne Davison
d9d04545a5 Changed struct listnode to use "prev" for the previous pointer,
not "last".
2006-03-07 21:43:34 +00:00
Wayne Davison
4cb83571c4 Changed some structures to avoid gcc's type-punned warnings. 2006-03-07 21:30:36 +00:00
Peter Stephenson
e17fc50793 22328, modified: add -o option to compadd
add _list_files helper to handle new file-list style for _path_files
2006-03-07 12:50:56 +00:00
Wayne Davison
19305c6eaf Tweaked a couple comments. 2006-03-07 01:15:47 +00:00
Bart Schaefer
20aae107b8 22321: optimize 22318. 2006-03-06 15:38:59 +00:00
Peter Stephenson
4065dd5258 22318: uniquifying special arrays was broken 2006-03-03 22:27:02 +00:00
Peter Stephenson
31f6b3fb07 22317: exit status from code backgrounded in function
22277, 22281, tweaks: standardize behaviour of wait builtin
with trapped signals
2006-03-02 22:05:21 +00:00
Wayne Davison
c1f0a1200a Added "mod_export" to the declaration of makecommaspecial(). 2006-03-01 14:50:52 +00:00
Wayne Davison
4b9d1c4f5c Optimized away a recently-added call to strlen(). 2006-02-20 05:51:49 +00:00
Wayne Davison
6c31a7dc68 Made the realocation of the line buffer in add_match_data() use a
little more optimal size.  Also tweaked the code just a little.
2006-02-19 22:57:56 +00:00
Clint Adams
a915138852 22284: add --disable-dynamic-nss configure switch to disable use of getpw*(), getgr*(), initgroups() functions. 2006-02-19 19:36:31 +00:00
Wayne Davison
1e2f61f116 The code in add_match_data() that looks for invalid characters
now properly parses the string as metafied.
2006-02-18 18:39:38 +00:00
Wayne Davison
803fa9872f Made ${(A)=name:=word} (which is an array assignment) not split on
quoted whitespace, just like the new ${1+"$@"} handling.
2006-02-16 19:51:48 +00:00
Wayne Davison
1811ec9b78 Fixed another ${name+word} problem when word consisted of an
array followed by a scalar.  Also updated several comments.
2006-02-15 18:35:35 +00:00
Wayne Davison
d0ea78e557 - Fixed: setopt shwordsplit; set 1 '2 3' 4; print -l ${1+"$@"}
- Fixed: setopt shwordsplit; foo='1 2'; print -l ${==foo+$foo}
- Fixed: emulate sh; touch '1 2'; print -l ${1:-*\ *}
- Improved multsub() and its comments.
2006-02-15 10:13:41 +00:00
Wayne Davison
5c8bb4944d Replaced a flawed look-behind algorithm for backslash detection
with one that looks forward (avoiding an accidental quoting of a
char after a "\\" sequence).
2006-02-13 11:06:21 +00:00
Wayne Davison
a6658fb9f6 Made add_match_data() look for invalid multibyte chars in the
names and substitute $'\123' sequences for them.
2006-02-13 11:03:59 +00:00
Wayne Davison
f8e97151de Call makecommaspecial() when we notice we're completing inside
an open brace list.
2006-02-13 11:01:04 +00:00
Wayne Davison
a4d4cf5cf8 Added the makecommaspecial() routine that completion uses when
it is completing filenames into an open brace list.
2006-02-13 10:59:22 +00:00
Wayne Davison
587db0585c Call ZS_memchr() instead of plain memchr() so that suffix-removal
works again.
2006-02-09 22:14:49 +00:00
Wayne Davison
6698e6f676 Define ZS_memchr() as either wmemchr() or memchr(). 2006-02-09 22:12:54 +00:00
Peter Stephenson
ba8349e6ed 22200: process text wasn't unmetafied for output. 2006-02-07 16:55:09 +00:00
Peter Stephenson
30176eaf63 22198: do always set HOME in native emulation 2006-02-07 11:29:30 +00:00
Wayne Davison
b9281e3aa8 Added the missing return value to a newly-added "return". 2006-02-07 05:19:21 +00:00
Peter Stephenson
8b0cc87817 22195: don't set HOME in the shell 2006-02-06 11:57:03 +00:00
Peter Stephenson
4b3cdcdb69 22169: hook function zle-keymap-select called when $KEYMAP changes 2006-01-28 15:02:25 +00:00
Wayne Davison
f211604396 Tweaked the code that handles %D so that: (1) we don't free() a NULL
pointer (we use zsfree() instead), and (2) we avoid a rare bug that
could call free() on same memory twice (e.g. "%D{}%D").
2006-01-17 22:14:40 +00:00
Wayne Davison
4817964a07 Got rid of unused-variable compiler warning when compiling a
non-multibyte zsh.
2006-01-13 17:46:09 +00:00
Wayne Davison
78ddb65f6c Got rid of some superfluous STOUC() calls (such as the ones I added
for the arg of calls to nicechar(), which doesn't need this).
2006-01-13 17:13:49 +00:00
Wayne Davison
394a6b3567 A better version of my last change. 2006-01-13 09:43:46 +00:00
Wayne Davison
325c9a1de5 Metafy the output of the ztrftime() string since that's what the
prompt expects and some date names might not be ASCII.
2006-01-13 09:25:09 +00:00
Wayne Davison
39b3d2b90a Values being stored in an array or a hash needed to be metafied
(using META_DUP) instead of just duplicated via ztrdup().
2006-01-13 09:15:59 +00:00
Wayne Davison
7c9c5bff0d If we are saving the ztrftime() value in a variable, we now metafy
the string (using META_DUP) instead of duplicating it via ztrdup().
2006-01-13 09:02:43 +00:00
Wayne Davison
70de60a962 The new "eol" var was being set in singlerefresh(), but not accessed. 2006-01-12 08:33:15 +00:00
Wayne Davison
4867f99ef9 - When mbrtowc() returns -2 when given all the remaining chars in a
string, set an end-of-line flag and avoid calling mbrtowc() again
  for any of the incomplete characters that remain in the string.
- Use "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 01:04:17 +00:00
Wayne Davison
f6fefb2db3 - Use "mbs" for the multi-byte state variable name (for consistency).
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively).
2006-01-12 00:51:53 +00:00