Сегодня я случайно набрал man git diff
который не должен давать результатов, так как, согласно руководству, он должен интерпретироваться как page diff в разделе git. Однако страница git-diff(1) действительно показана. Как это может быть? (Использование man 2.5.7, как включено в Ubuntu Lucid)
2
2 ответа
6
Человек (1) в Ubuntu говорит:
--no-subpages
By default, man will try to interpret pairs of manual page names given on the command line as
equivalent to a single manual page name containing a hyphen. This supports the common pat-
tern of programs that implement a number of subcommands, allowing them to provide manual
pages for each that can be accessed using similar syntax as would be used to invoke the sub-
commands themselves. For example:
$ man -aw git diff
/usr/share/man/man1/git-diff.1.gz
To disable this behaviour, use the --no-subpages option.
$ man -aw --no-subpages git diff
/usr/share/man/man1/git.1.gz
/usr/share/man/man3/Git.3pm.gz
/usr/share/man/man1/diff.1.gz
1
Git может иметь ссылку на diff
в git
которая указывает на git-diff
.