| 1 |
## Test 1: a binary program in the path |
| 2 |
## Test 2: a #! script in the path |
| 3 |
--- subdir/script1 |
| 4 |
FOO is foo, BAR is bar, BUZ is |
| 5 |
3 arguments: 2 3 4 |
| 6 |
## Test 3: a script without #! in the path |
| 7 |
--- subdir/script2 |
| 8 |
FOO is foo, BAR is bar, BUZ is |
| 9 |
3 arguments: 5 6 7 |
| 10 |
## Test 4: a script in the current directory |
| 11 |
--- ./script3 |
| 12 |
FOO is foo, BAR is bar, BUZ is |
| 13 |
2 arguments: 8 9 |
| 14 |
## Test 5: a non-existent program |
| 15 |
No such file nosuchprogram |
| 16 |
## Test 6: a non-executable program |
| 17 |
Permission denied nonexec |
| 18 |
## Test 7: a script in the current directory |
| 19 |
No such file script3 |