Re: [PATCH] Fix wrong info in `INSTALL`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 24, 2022, 22:21 UTC
- Message-ID
- <xmqqpmk2efn0.fsf@gitster.g>
- In-Reply-To
- <pull.1241.git.1653424998869.gitgitgadget@gmail.com>
"Shao-Ce SUN via GitGitGadget" <gitgitgadget@gmail.com> writes:
> - $ make prefix=/usr all doc info ;# as yourself > - # make prefix=/usr install install-doc install-html install-info ;# as root > + $ make prefix=/usr all doc info ; $ as yourself
This and all the changes in the patch is wrong, but it is not entirely your fault. You need to know the shell syntax.
The semicolon in ";#" is an end of one command (i.e. "make"), and the hash is "start of comment--ignore the rest of the line.
If you replace # with $, then "$ as yourself" would be fed to the shell because $ is not a comment introducer. The command line no longer can be copied and pasted, starting from "make" to the end of the line.
Thanks.