Bug 220300 - man.sh: accept negative MANWIDTH
Summary: man.sh: accept negative MANWIDTH
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-06-27 09:13 UTC by TEUBEL György
Modified: 2018-05-23 15:36 UTC (History)
0 users

See Also:


Attachments
patch for negative MANWIDTH (959 bytes, patch)
2017-06-27 09:13 UTC, TEUBEL György
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TEUBEL György 2017-06-27 09:13:40 UTC
Created attachment 183834 [details]
patch for negative MANWIDTH

Accept negative MANWIDTH value in man.sh. In that case the width will be the screen width minus MANWIDTH.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2018-05-23 11:05:49 UTC
Do any other systems implement this? I'm not inherently opposed, it just doesn't seem like obvious behavior to have negative width imply a margin.
Comment 2 TEUBEL György 2018-05-23 15:36:24 UTC
I don't know whether other man implementations supports this (probably no).  I intended the meaning of the negative value is to count from the other (right) side.