about summary refs log tree commit diff stats
path: root/lib/punycode.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-15 11:08:21 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-15 11:28:35 +0100
commit39ae15c1049f41f0ab3b60e420fa6d79f5ed48cd (patch)
treec022f4ca70fbeeb550641321798b464cefa6a033 /lib/punycode.nim
parent5d95938a2fbf1bbc1f4ce05993da3e8dc9da6261 (diff)
downloadchawan-39ae15c1049f41f0ab3b60e420fa6d79f5ed48cd.tar.gz
man: work around parameter insanity
This is horrible.

-s means completely different things on various systems. -l does not
exist on various systems. Nothing is standardized, except that man
should take at least one parameter and that -k should perform a search.
(Seriously, that's all.)

So what we do is:
* add a separate env var for overriding apropos
* for man:, never use -s to specify sections
* for man-k:, fall back to man, EXCEPT on FreeBSD which does not have a
  working section specifier on man -k (neither -S nor MANSECT does
  anything)
* for man-l:, just pass the path wholesale to man and hope it does
  something useful.

Also, we now set MANCOLOR to 1 so FreeBSD man gives us formatting as
well.
Diffstat (limited to 'lib/punycode.nim')
0 files changed, 0 insertions, 0 deletions