shell: update psubst testcases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		| @@ -22,6 +22,3 @@ hush: can't open '/does/not/exist': No such file or directory | ||||
| 1 | ||||
| hush: can't open '/does/not/exist': No such file or directory | ||||
| 1 | ||||
| hush: can't open '/does/not/exist': No such file or directory | ||||
| 1 | ||||
| Done: a=b | ||||
|   | ||||
| @@ -17,6 +17,3 @@ true;  a=`exit 2` >/does/not/exist; echo $? | ||||
| false; a=`exit 2` >/does/not/exist; echo $? | ||||
| true;  a=$(exit 2) >/does/not/exist; echo $? | ||||
| false; a=$(exit 2) >/does/not/exist; echo $? | ||||
| # ...and assignment still happens despite redirect error: | ||||
| true;  a=$(echo b) >/does/not/exist; echo $? | ||||
| echo "Done: a=$a" | ||||
|   | ||||
							
								
								
									
										3
									
								
								shell/hush_test/hush-psubst/falsetick3.right
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								shell/hush_test/hush-psubst/falsetick3.right
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| hush: can't open '/does/not/exist': No such file or directory | ||||
| 1 | ||||
| Done: a=b | ||||
							
								
								
									
										3
									
								
								shell/hush_test/hush-psubst/falsetick3.tests
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										3
									
								
								shell/hush_test/hush-psubst/falsetick3.tests
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| # assignment still happens despite redirect error | ||||
| true;  a=$(echo b) >/does/not/exist; echo $? | ||||
| echo "Done: a=$a" | ||||
		Reference in New Issue
	
	Block a user