On Fri, Feb 17, 2017 at 2:38 PM, Jamie Strandboge <ja...@canonical.com> wrote: > On Fri, 2017-02-17 at 10:35 -0600, Dustin Kirkland wrote: >> Is there something special I need to do to have the "man" binary >> available to me? >> >> My snap ships a manpage in /snap/petname/share/man/man1/petname.1 >> >> Perhaps too cleverly, when you run /snap/bin/petname --help, my >> program tries to "exec man petname", and that fails: >> >> $ /snap/bin/petname -h >> /snap/petname/9/bin/petname: 49: exec: man: not found >> >> Please advise. Do I need to include man as a part or something? >> > Charles gave the bug for this,
Great, thanks: https://bugs.launchpad.net/snappy/+bug/1575593 The bug is almost a year old, affects 17 people, and is Triaged and priority Low. I'm glad it's getting a little more attention! > For something that should work today, I might mention that if you > stage-packages > man so that you have it in your snap, 'petname -h' could invoke > '$SNAP/path/to/man $SNAP/path/to/page'. > > You could also dump the man page output and save that in your snap and have > 'petname -h' 'less /snap/path/to/dumped/page'. I've used this command for that > sort of thing: > > $ PAGER=cat LANG='en_US.UTF-8' MANWIDTH=80 man --warnings \ > -E UTF-8 -l ./path/to/page > ./path/to/dumped/page Thanks for the suggestions, I can make these work. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft