mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	33679: Note on patter s in case statements
They work exactly like groups in other patterns, despite contrary indications.
This commit is contained in:
		
							parent
							
								
									0a4223d908
								
							
						
					
					
						commit
						dded99b085
					
				
					 2 changed files with 12 additions and 2 deletions
				
			
		|  | @ -239,7 +239,11 @@ item(tt(case) var(word) tt(in) [ [tt(LPAR())] var(pattern) [ tt(|) var(pattern) | |||
| Execute the var(list) associated with the first var(pattern) | ||||
| that matches var(word), if any.  The form of the patterns | ||||
| is the same as that used for filename generation.  See | ||||
| noderef(Filename Generation). | ||||
| noderef(Filename Generation).  Note further that the whole | ||||
| pattern with alternatives is treated by the shell as equivalent | ||||
| to a group of patterns within parentheses, even though in | ||||
| the tt(case) syntax whitespace may appear about the parentheses and the | ||||
| vertical bar. | ||||
| 
 | ||||
| If the var(list) that is executed is terminated with tt(;&) rather than | ||||
| tt(;;), the following list is also executed.  The rule for | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue