mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-30 05:40:58 +01:00 
			
		
		
		
	24240: make vared check for trailing garbage earlier
This commit is contained in:
		
							parent
							
								
									7a598440f6
								
							
						
					
					
						commit
						724f55afda
					
				
					 2 changed files with 7 additions and 0 deletions
				
			
		|  | @ -1,5 +1,8 @@ | |||
| 2007-12-13  Peter Stephenson  <p.w.stephenson@ntlworld.com> | ||||
| 
 | ||||
| 	* 24240: Src/Zle/zle_main.c: vared didnʼt check for trailing | ||||
| 	garbage on parameter names until too late. | ||||
| 
 | ||||
| 	* 24239: Completion/Zsh/Context/_subscript: if the [ of | ||||
| 	a subscript was backslashed, a trailing space was added | ||||
| 	backslashed along with the "\[". | ||||
|  |  | |||
|  | @ -1441,6 +1441,10 @@ bin_vared(char *name, char **args, Options ops, UNUSED(int func)) | |||
| 	zwarnnam(name, "no such variable: %s", args[0]); | ||||
| 	return 1; | ||||
|     } else if (v) { | ||||
| 	if (*s) { | ||||
| 	    zwarnnam(name, "not an identifier: `%s'", args[0]); | ||||
| 	    return 1; | ||||
| 	} | ||||
| 	if (v->isarr) { | ||||
| 	    /* Array: check for separators and quote them. */ | ||||
| 	    char **arr = getarrvalue(v), **aptr, **tmparr, **tptr; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue