unexpand: correct behavior for --first-only --tabs=4
authorMark Edgar <medgar123@gmail.com>
Sat, 30 May 2020 17:05:46 +0000 (19:05 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 9 Jun 2020 13:40:49 +0000 (15:40 +0200)
commitb2ab920716f640cbaaf486512ba177f4e0b597c5
treeae3c6cb964bedf4f59f917c93172f8c9197af0d2
parent9b4a9d96b89f06355ad9551d782d34506699aac8
unexpand: correct behavior for --first-only --tabs=4

Prior to the patch, both -f and --first-only are in all cases either
no-op or ignored.
Without --tabs, --first-only is the default so specifying it is a no-op.
With --tabs, --all is implied, and --first-only is intended to reset this.

function                                             old     new   delta
expand_main                                          690     694      +4

Signed-off-by: Mark Edgar <medgar123@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/expand.c
testsuite/unexpand.tests