termux-packages/packages/fish/share-functions-__fish_prin...

21 lines
965 B
Diff
Raw Normal View History

2017-06-05 21:32:37 +02:00
diff -u -r ../fish-2.6.0/share/functions/__fish_print_help.fish ./share/functions/__fish_print_help.fish
--- ../fish-2.6.0/share/functions/__fish_print_help.fish 2017-06-03 14:45:13.000000000 +0200
+++ ./share/functions/__fish_print_help.fish 2017-06-05 21:29:51.794696261 +0200
@@ -45,7 +45,7 @@
set mfish -mfish
end
2016-11-17 01:38:08 +01:00
if test -e "$__fish_datadir/man/man1/$item.1"
2017-06-05 21:32:37 +02:00
- set help (nroff -c -man $mfish -t $rLL "$__fish_datadir/man/man1/$item.1" ^/dev/null)
+ set help (mandoc "$__fish_datadir/man/man1/$item.1" ^/dev/null)
2016-11-17 01:38:08 +01:00
else if test -e "$__fish_datadir/man/man1/$item.1.gz"
2017-06-05 21:32:37 +02:00
set help (gunzip -c "$__fish_datadir/man/man1/$item.1.gz" ^/dev/null | nroff -c -man $mfish -t $rLL ^/dev/null)
2016-11-17 01:38:08 +01:00
end
2017-06-05 21:32:37 +02:00
@@ -103,6 +103,6 @@
# skip it
end
end
- end | ul # post-process with `ul`, to interpret the old-style grotty escapes
2017-06-05 21:32:37 +02:00
+ end
echo # print a trailing blank line
2015-07-16 23:56:40 +02:00
end