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 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								542797377a 
								
							 
						 
						
							
							
								
								- 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 00:51:50 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								e46d08523f 
								
							 
						 
						
							
							
								
								- The return value of mbsrtowcs() is also a size_t (like mbrtowc()).  
							
							... 
							
							
							
							- 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 00:51:44 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								eebfabe548 
								
							 
						 
						
							
							
								
								- The return value of mbrtowc() is a size_t (unsigned), so don't  
							
							... 
							
							
							
							assign it to an int and then check for negativity, as that won't
  work on a system where an int is larger than a size_t.
- 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 STOUC() when passing a char value to nicechar().
- Use "mbs" for the multi-byte state variable name (for consistency).
- Be sure to reset the mbs state if mbrtowc() returns -1.
- Use the new MB_INVALID and MB_INCOMPLETE defines for the size_t
  -1 and -2 values (respectively). 
							
						 
						
							2006-01-12 00:51:41 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								3039f65d74 
								
							 
						 
						
							
							
								
								Define MB_INCOMPLETE and MB_INVALID for MULTIBYTE_SUPPORT.  
							
							
							
						 
						
							2006-01-12 00:51:38 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								4b831f02df 
								
							 
						 
						
							
							
								
								Tweaked the code to handle mbrtowc() converting '\0' the same way as  
							
							... 
							
							
							
							the other callers do.  Also, changed the variable name to 'cnt'. 
							
						 
						
							2006-01-11 20:12:09 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								4c3edda1f1 
								
							 
						 
						
							
							
								
								Decided to use a switch() in mb_niceformat().  
							
							
							
						 
						
							2006-01-11 20:09:03 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								23bd860ef7 
								
							 
						 
						
							
							
								
								The return value of mbrtowc() is a size_t (unsigned), so don't  
							
							... 
							
							
							
							assign it to an int and then check if it's <= 0, as that won't
work on a system where an int is larger than a size_t. 
							
						 
						
							2006-01-11 20:01:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								c6798bc151 
								
							 
						 
						
							
							
								
								The return value of mbrtowc() is a size_t (unsigned), so don't  
							
							... 
							
							
							
							assign it to an int and then check if it's >= 0, as that won't
work on a system where an int is larger than a size_t. 
							
						 
						
							2006-01-11 19:49:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								4ffa433443 
								
							 
						 
						
							
							
								
								The return value of mbrtowc() is a size_t (unsigned), so don't  
							
							... 
							
							
							
							assign it to an int and then check if it's < 0, as that won't
work on a system where an int is larger than a size_t. 
							
						 
						
							2006-01-11 19:42:40 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Peter Stephenson 
								
							 
						 
						
							
							
							
							
								
							
							
								fa633171fd 
								
							 
						 
						
							
							
								
								22151: bug outputting here-strings from which etc. when already quoted  
							
							
							
						 
						
							2006-01-10 16:57:02 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								00465c76fb 
								
							 
						 
						
							
							
								
								Changed the name of the "ret" variable in mb_niceformat() to "cnt"  
							
							... 
							
							
							
							because "ret" is usually used for a variable name to hold the
return value of the function.  Also, changed the test when
checking for a \0 to only check if "cnt" is 0, since we must
always change a value of 0 to 1. 
							
						 
						
							2006-01-09 17:58:57 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Wayne Davison 
								
							 
						 
						
							
							
							
							
								
							
							
								cc890edcb5 
								
							 
						 
						
							
							
								
								Changed the name of the "ret" variable in mb_niceformat() to "cnt"  
							
							... 
							
							
							
							because "ret" is usually used for a variable name to hold the
return value of the function.  Also, changed the test when
checking for a \0 to one that checks if "cnt" is 0, since we
must always change a value of 0 to 1. 
							
						 
						
							2006-01-09 17:44:02 +00:00