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:
@@ -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]
|
||||
|
Reference in New Issue
Block a user