2010-07-09 12:10:22 +00:00
|
|
|
### Test basic --arg-sep
|
|
|
|
a
|
|
|
|
b
|
|
|
|
### Run commands using --arg-sep
|
|
|
|
echo a
|
|
|
|
a
|
|
|
|
echo b
|
|
|
|
b
|
|
|
|
### Change --arg-sep
|
|
|
|
echo a
|
|
|
|
a
|
|
|
|
echo b
|
|
|
|
b
|
|
|
|
echo a
|
|
|
|
a
|
|
|
|
echo b
|
|
|
|
b
|
2010-07-18 02:17:49 +00:00
|
|
|
echo a
|
|
|
|
a
|
|
|
|
echo b
|
|
|
|
b
|
|
|
|
echo a
|
|
|
|
a
|
|
|
|
echo b
|
|
|
|
b
|
2010-09-05 10:22:08 +00:00
|
|
|
### Test stdin goes to first command only ("-" as argument)
|
2010-07-09 12:10:22 +00:00
|
|
|
cat -
|
|
|
|
via first cat
|
|
|
|
cat -
|
2010-09-05 10:22:08 +00:00
|
|
|
via pseudotty
|
|
|
|
### Test stdin goes to first command only ("cat" as argument)
|
|
|
|
echo a
|
|
|
|
a
|
|
|
|
cat
|
|
|
|
via pseudotty
|
|
|
|
### Test stdin goes to first command only
|
2010-07-09 12:10:22 +00:00
|
|
|
cat
|
|
|
|
via cat
|
|
|
|
echo b
|
|
|
|
b
|
|
|
|
cat
|
|
|
|
via cat
|
|
|
|
echo b
|
|
|
|
b
|
2010-07-09 20:37:45 +00:00
|
|
|
### Bug made 4 5 go before 1 2 3
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
|
|
|
4
|
|
|
|
5
|
|
|
|
### Bug made 3 go before 1 2
|
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2010-07-14 10:00:10 +00:00
|
|
|
### Bug did not quote
|
|
|
|
echo \>
|
|
|
|
>
|
|
|
|
echo \>
|
|
|
|
>
|
|
|
|
echo \> 2
|
|
|
|
> 2
|
|
|
|
> 2
|
|
|
|
### Must not quote
|
|
|
|
echo | wc -l
|
|
|
|
1
|
|
|
|
echo | wc -l
|
|
|
|
1
|
|
|
|
echo a b c | wc -w
|
|
|
|
3
|
|
|
|
echo a b c | wc -w
|
|
|
|
3
|
|
|
|
echo a b | wc -w
|
|
|
|
2
|