ash: expand: Fix bugs with words connected to the right of $@
Upstream email:
    This is actually composed of two bugs.  First of all our tracking
    of quotemark is wrong so anything after "$@" becomes quoted.  Once
    we fix that then the problem is that the first space character
    after "$@" is not recognised as an IFS.
    This patch fixes both.
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
			
			
This commit is contained in:
		
							
								
								
									
										2
									
								
								shell/ash_test/ash-parsing/starquoted3.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								shell/ash_test/ash-parsing/starquoted3.right
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
<a>
 | 
			
		||||
<>
 | 
			
		||||
							
								
								
									
										1
									
								
								shell/ash_test/ash-parsing/starquoted3.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										1
									
								
								shell/ash_test/ash-parsing/starquoted3.tests
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
set -- a ""; space=" "; printf "<%s>\n" "$@"$space
 | 
			
		||||
		Reference in New Issue
	
	Block a user