Module Name:    src
Committed By:   dyoung
Date:           Fri Sep 13 16:53:05 UTC 2019

Modified Files:
        src/usr.bin/unexpand: unexpand.c

Log Message:
Fix a handful of bugs in unexpand(1):

1. -a and -t were mutually exclusive when they should not be.

2. `unexpand -t n` did not treat a file like there were stops at n, 2
   n, 3 n, 4 n, and so on.  So expanded tabs after column 4 were not
   collapsed.

3. a debug fprintf wrote every tabstop set with `-t` to the standard
   error stream.

TBD write some tests.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.bin/unexpand/unexpand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to