mirror of https://github.com/mirror/busybox.git
Patch from Matt Kraai to fix 'echo "1 2 3" | tr -s " "'
so it properly outputs "1 2 3".1_00_stable_10817
parent
1d3523b7aa
commit
8ffabf5825
|
@ -70,7 +70,7 @@ static void convert()
|
|||
coded = vector[c];
|
||||
if (del_fl && invec[c])
|
||||
continue;
|
||||
if (sq_fl && last == coded && outvec[coded])
|
||||
if (sq_fl && last == coded && (invec[c] || outvec[coded]))
|
||||
continue;
|
||||
output[out_index++] = last = coded;
|
||||
if (out_index == BUFSIZ) {
|
||||
|
|
Loading…
Reference in New Issue