On Thu, Oct 19, 2017 at 09:20:25PM +0200, Andreas Kusalananda K?h?ri wrote: > >Synopsis: expand(1) manual documents non-existant "-a" option > >Category: documentation > >Environment: > System : OpenBSD 6.2 > Details : OpenBSD 6.2 (GENERIC.MP) #0: Thu Oct 12 19:53:18 CEST 2017 > > r...@syspatch-62-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > > The documentation of the expand(1) utility contains references to an > option "-a": > > -a By default, only leading blanks and tabs are reconverted to maximal > strings of tabs. If the -a option is given, tabs are inserted > whenever they would compress the resultant file by replacing two or > more characters. > > However, this option is not implemented: > > while ((c = getopt (argc, argv, "t:")) != -1) { > switch (c) { > case 't': > getstops(optarg); > break; > case '?': > default: > usage(); > /* NOTREACHED */ > } > } > > > >How-To-Repeat: > > Type "man expand", read. > > Then: > > $ expand -a somefile > expand: unknown option -- a > usage: expand [-t tablist] [file ...] > > > >Fix: > > The "-a" option is not part of the POSIX spec for this utility, > and there's no dead code in expand.c that implments it. I would > therefore suggest just removing the mentioning of "-a" from expand.1. > Alternatively, implement the option according to the manual. >
hi. the manual page documents both expand and unexpand. guess which one support -a ;) jmc