-
|
In order to handle the different ways in which man pages and my keyboard encode hyphens, I created the following wrapper around my pager: And I set it to the "PAGER" env variable. It is working correctly with man pages, e.g.: But not with nnn help ( It's like is passing empty page. Of course nnn help works correctly with bare moar, or bare less for that matter. Do you know why? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
change it to |
Beta Was this translation helpful? Give feedback.
-
|
It does work. EDIT: Yes, it's the other way around.
So |
Beta Was this translation helpful? Give feedback.


printf "%s" "$(cat)"sed should be able to read from stdin just fine, so this looks entirely uselesschange it to
sed $'s/\u2010/\u002d/g' "$@" | moarand see if that works.