dyoung
edd6d16024
Deduplicate some code I'd duplicated, shorten a couple of staircases,
...
repair the indentation in usage(). NFCI.
2019-09-13 17:32:29 +00:00
dyoung
733dd361b1
Fix `unexpand -a -t n`, which also did not treat `-t n` like it
...
established stops n, 2 n, 3 n, ....
2019-09-13 17:26:27 +00:00
dyoung
5487d3395a
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.
2019-09-13 16:53:05 +00:00
christos
24830f9883
PR/50750: David Binderman: Check bounds before dereference
2016-02-03 05:32:14 +00:00
lukem
c1ceae17f0
Enable WARNS=4 by default for usr.bin, except for:
...
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
2009-04-14 22:15:16 +00:00
christos
f97bdef169
PR/11228: Ben Harris: Unexpand -t should take tab list. Based on patch
...
supplied by Roy Marples.
2008-12-21 02:33:13 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun
870f37306c
use bounded string op
2003-07-14 09:24:00 +00:00
dsl
f15823e97e
Add -t tabsize to fix bin/21058
2003-04-08 10:47:03 +00:00
dsl
80989e12c8
KNF
2003-04-08 09:44:47 +00:00
lukem
5d4973fe97
makefile delint. use NETBSDSRCDIR as appropriate
2002-09-18 14:00:33 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
kleink
5c07d539b2
Update usage string: file arguments are optional.
1999-02-11 15:29:14 +00:00
kleink
5f9772373e
Replace home-grown option handling with getopt(3); delint.
1999-02-10 16:16:43 +00:00
lukem
53e428c8a9
WARNSify, fix .Nm usage
1997-10-20 02:20:41 +00:00
cgd
e7e72e697f
pull in string.h
1994-12-24 17:08:05 +00:00
jtc
2e93b6f80d
cleanup from jimj
1994-12-20 01:30:26 +00:00
jtc
d7a39d841a
Merged with 4.4lite.
...
Changed to conform to NetBSD's new RCS Id convention.
1994-12-07 00:36:39 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
75ff3a90bd
Add RCS identifiers.
1993-07-30 23:49:23 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00