nomadbsd / NomadBSD

Livesystem based on FreeBSD
http://nomadbsd.org
BSD 2-Clause "Simplified" License
364 stars 43 forks source link

The fish shell requires the groff pkg for printing help to the terminal window #56

Closed maurizio-emmex closed 4 years ago

maurizio-emmex commented 4 years ago

At the fish prompt, I have an error running the command:

> exec --help
fish: Unknown command nroff
/usr/local/share/fish/functions/__fish_print_help.fish (line 1): 
gunzip -c "$__fish_data_dir/man/man1/$item.1.gz" 2>/dev/null | nroff -c -man $mfish -t $rLL 2>/dev/null
                                                               ^
in command substitution
    called on line 28 of file /usr/local/share/fish/functions/__fish_print_help.fish

in function “__fish_print_help”
    called on standard input
    with parameter list “exec”

in command substitution
    called on standard input

After installing the groff pkg all work:

> exec --help

       exec

   Synopsis
       exec COMMAND [OPTIONS...]

   Description
       exec replaces the currently running shell with a new command. On successful completion, exec never returns. exec cannot be used
       inside a pipeline.

   Example
       exec emacs starts up the emacs text editor, and exits fish. When emacs exits, the session will terminate.

Regards Maurizio

bsdlme commented 4 years ago

Thank you! I reported this to the maintainer of the port on FreeBSD. It should be fixed soon.

maurizio-emmex commented 4 years ago

Thank you for reporting this to the maintainer. Have you opened a PR ?

bsdlme commented 4 years ago

This was actually fixed already just after the NomadBSD image was built. So a pkg upgrade should fix this for every NomadBSD user.