Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 725
    • Issues 725
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 379
    • Merge requests 379
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • aportsaports
  • Issues
  • #5190

Closed
Open
Created Feb 25, 2016 by Samantha Baldwin@fuhsaz

mdocml default-pager.patch uses 'more -s'; -s option unspported in busybox's more

mdocml is patched[1] to use `/bin/more -s’ (instead of `/usr/bin/more -s’) as the default (man) pager, as /bin/more is provided by busybox.

however, busybox’s more implementation does not support -s, and fails with return code 141 (without opening the file):

$ man man; echo $?
more: -s: No such file or directory
141

There are a few options to fix:

  1. change default-pager.patch to remove -s and use `/bin/more’
  2. change default-pager.patch to use the busybox provided `/usr/bin/less’
  3. set $MANPAGER
  4. set $PAGER

I personally prefer (2), because it provides the most functionality (less is more) and is of equal complexity to (1). It’s also in line with the previous patch[2] which avoided setting $MANPAGER/PAGER.

[1] http://git.alpinelinux.org/cgit/aports/tree/main/mdocml/default-pager.patch
[2] http://git.alpinelinux.org/cgit/aports/commit/main/mdocml/APKBUILD?id=f74021abf32618202b26660a7412e170b95f12ac

(from redmine: issue id 5190, created on 2016-02-25)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking