On Wed, Dec 10, 2025 at 08:49:26PM +0100, Sebastien Marie wrote:
> "Lyndon Nerenberg (VE7TFX/VE6BBM)" <[email protected]> writes:
>
> > As of 7.8, I can no longer 'man ./foo.1' to format a manpage file
> > in the current directory. I do this constantly while writing man
> > pages, and its lack now makes writing man pages a PITA.
> >
> > Was this removed deliberately? If so, why? Please put this
> > functionality back. It was very useful.
> >
> > --lyndon
>
> You could use the -l man option :
>
> $ man -l ./foo.1
If typing the extra -l is too much effort, it's also possible to mostly
simulate the previous behaviour with a ksh function:
$ function foo { [ -f "$1" ] && man -l "$1" || man "$@"; }
If the first supplied argument is a readable file, then pass that to 'man -l',
otherwise pass the arguments through unchanged.