Bug 241985 - ex(1)/vi(1)/view(1) man page mentions broken options and refers to invalid section
Summary: ex(1)/vi(1)/view(1) man page mentions broken options and refers to invalid se...
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2019-11-15 16:04 UTC by Tim Chase
Modified: 2019-11-15 16:04 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tim Chase 2019-11-15 16:04:00 UTC
1) The current man page lists a "-w size" flag to set the window size

    ex [-FRrSsv] [-c cmd] [-t tag] [-w size] [file ...]
    vi  [-eFRrS] [-c cmd] [-t tag] [-w size] [file ...]
    view [-eFrS] [-c cmd] [-t tag] [-w size] [file ...]

However attempting to invoke ex/vi/view with "-w $SIZE" gives an error message:

    $ vi -w 10 a.txt b.txt
    set: no 23 option: 'set all' gives all option values

(same with invoking as ex or view)  As best I can tell, either the "-w" option doesn't work, has side-effects, or is improperly documented.  I suspect that the solution is to just remove the references to the "-w size" option.

2) Under the ASYNCHRONOUS EVENTS section's SIGWINCH, the reader is referred to the "vi/ex reference manual section Sizing the Screen" but AFAICT, either there is no vi/ex reference manual (if it's referring to an external document) or if that document is the self-same man-page, there is no "Sizing the Screen" section.  I'm not sure whether the proper resolution is to add a Sizing the Screen section to the current man-page, or to remove that cross-reference. Or, if it is an external document, providing details on the file-path to the "reference manual".