hush: fix "$v" expansion in case patterns when v='[a]'
function old new delta run_list 1053 1063 +10 setup_redirects 311 320 +9 encode_then_expand_string 135 142 +7 run_pipe 1784 1789 +5 expand_assignments 81 86 +5 expand_string_to_string 124 125 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/0 up/down: 37/0) Total: 37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
							
								
								
									
										1
									
								
								shell/ash_test/ash-quoting/case_glob1.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								shell/ash_test/ash-quoting/case_glob1.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
s
 | 
			
		||||
							
								
								
									
										8
									
								
								shell/ash_test/ash-quoting/case_glob1.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										8
									
								
								shell/ash_test/ash-quoting/case_glob1.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
g='[3](a)(b)(c)'
 | 
			
		||||
s='[3](a)(b)(c)'
 | 
			
		||||
case $g in
 | 
			
		||||
"$s")   echo s
 | 
			
		||||
        ;;
 | 
			
		||||
*)      echo "*"
 | 
			
		||||
        ;;
 | 
			
		||||
esac
 | 
			
		||||
		Reference in New Issue
	
	Block a user