I use Windows 7
.What is the correct way to use help
in Git Bash
?
help command
or
command --help
For example:
I have to use CTRLC to break result of below command
$ while --help
>
But this works:
$ help while
while: while COMMANDS; do COMMANDS; done
Expand and execute COMMANDS as long as the final command in the
`while' COMMANDS has an exit status of zero.
Or
$ help touch
sh.exe": help: no help topics match `touch'. Try `help help' or `man -k touch'
or `info touch'.
But
$ touch --help
Usage: touch [OPTION]... FILE...
or: touch [-acm] MMDDhhmm[YY] FILE... (obsolescent)
...
I looked at An A-Z Index of the Bash command line for Linux.But I do not find any thing in about using help
command.