hush: fix for readonly vars in "ro=A ro=B cmd" case
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		
							
								
								
									
										4
									
								
								shell/hush_test/hush-vars/readonly3.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								shell/hush_test/hush-vars/readonly3.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
hush: v=2: readonly variable
 | 
			
		||||
hush: v=3: readonly variable
 | 
			
		||||
1
 | 
			
		||||
Ok:1
 | 
			
		||||
							
								
								
									
										4
									
								
								shell/hush_test/hush-vars/readonly3.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								shell/hush_test/hush-vars/readonly3.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
readonly v=1
 | 
			
		||||
# there was a bug causing second assignment to be not checked
 | 
			
		||||
v=2 v=3 echo $v
 | 
			
		||||
echo Ok:$v
 | 
			
		||||
		Reference in New Issue
	
	Block a user