2010-07-31 21:19:48 +00:00
|
|
|
### Test of quoting of > bug
|
|
|
|
>/dev/null
|
|
|
|
### Test of quoting of > bug if line continuation
|
|
|
|
> > >
|
|
|
|
### Test of --trim illegal
|
|
|
|
parallel: --trim must be one of: r l rl lr
|
2010-08-01 18:09:31 +00:00
|
|
|
### Test of eof string on :::
|
|
|
|
foo
|
|
|
|
### Test of ignore-empty string on :::
|
|
|
|
foo
|
|
|
|
ole
|
|
|
|
bar
|
|
|
|
### Test of trailing space continuation
|
|
|
|
foo ole bar
|
|
|
|
quux
|
|
|
|
foo ole bar
|
|
|
|
quux
|
|
|
|
foo ole bar
|
|
|
|
quux
|
2010-11-22 09:35:53 +00:00
|
|
|
### Test of trailing space continuation with -E eof
|
2010-08-01 18:09:31 +00:00
|
|
|
foo ole
|
|
|
|
foo ole
|
2010-11-22 09:35:53 +00:00
|
|
|
foo ole
|
2010-07-31 21:19:48 +00:00
|
|
|
### Test of --colsep
|
|
|
|
a b c
|
|
|
|
a b c {4}
|
|
|
|
a b c d
|
|
|
|
a b c
|
|
|
|
d e f
|
|
|
|
a b c
|
|
|
|
d e f
|
|
|
|
a b c
|
|
|
|
a b c {4}
|
|
|
|
a b c d
|
2010-08-01 18:09:31 +00:00
|
|
|
### Test of tab as colsep
|
|
|
|
abc def
|
|
|
|
ghi jkl
|
|
|
|
abc def
|
|
|
|
ghi jkl
|
2010-08-21 23:29:26 +00:00
|
|
|
### Test of multiple -a plus colsep
|
|
|
|
abc def
|
2010-11-22 09:35:53 +00:00
|
|
|
mno jkl
|
2010-08-21 23:29:26 +00:00
|
|
|
### Test of multiple -a no colsep
|
|
|
|
abc def ghi
|
|
|
|
jkl mno pqr
|
2010-08-01 18:09:31 +00:00
|
|
|
### Test of quoting after colsplit
|
|
|
|
>/tmp/null >/dev/null
|
2010-07-31 21:19:48 +00:00
|
|
|
### Test of --colsep as regexp
|
|
|
|
a b c {4}
|
|
|
|
a b c d
|
|
|
|
a b c {4}
|
|
|
|
a b c d
|
|
|
|
a b c {4}
|
|
|
|
a b c d
|
|
|
|
a_b_c_{4}
|
|
|
|
a_b_c_d
|
|
|
|
### Test of -C
|
|
|
|
a_b_c_{4}
|
|
|
|
a_b_c_d
|
|
|
|
### Test of --trim n
|
|
|
|
a_b_\ c\ _{4}
|
|
|
|
a_\ b\ _c_d
|
|
|
|
a_b_c_{4}
|
|
|
|
a_b_c_d
|
2010-10-09 19:55:01 +00:00
|
|
|
### Test of bug: If input is empty string
|
|
|
|
echo {2}
|
|
|
|
{2}
|
|
|
|
echo ac
|
|
|
|
ac
|
|
|
|
echo ac
|
|
|
|
ac
|