behaviour change: jaredy@openbsd informs me they strip

trailing IFS non-whitespace "because many sh-derived
shells have this behavious", and me checking for ksh88
on Solaris confirms it.

So, for the sake of compatibility to AT&T ksh, change
it and document the change.
This commit is contained in:
tg
2004-12-10 16:01:38 +00:00
parent 2aaea3d8d2
commit e2c4bce569
3 changed files with 13 additions and 15 deletions

View File

@@ -147,12 +147,12 @@ stdin:
showargs 10 ${FOO-`echo -n h:i`th:ere}
showargs 11 "${FOO-`echo -n h:i`th:ere}"
expected-stdout:
1: [] [b] [] []
1: [] [b] []
2: [:b::]
<3> <> <b> <> <>
<3> <> <b> <>
<4> <:b::>
5: [a] [b] []
<6> <a> <b> <>
5: [a] [b]
<6> <a> <b>
7: [a] [] [c]
<8> <a> <> <c>
9: [h] [ith] [ere]