git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Fix wrong info in `INSTALL`

From
Christian Couder <christian.couder@gmail.com>
Date
May 25, 2022, 05:29 UTC
Message-ID
<CAP8UFD2BS3OuJD7xhb6M+bX3ojLqM8ZuXK_h4w0CvdYRfmzVqg@mail.gmail.com>
In-Reply-To
<pull.1241.git.1653424998869.gitgitgadget@gmail.com>

On Wed, May 25, 2022 at 6:35 AM Shao-Ce SUN via GitGitGadget <gitgitgadget@gmail.com> wrote:

>
> From: Shao-Ce SUN <sunshaoce@iscas.ac.cn>
>
> The user prompt should be `$` instead of `#`.
On the following lines:

$ make prefix=/usr all doc info ;# as yourself # make prefix=/usr install install-doc install-html install-info ;# as root

the '$' or '#' before "make" is indeed a prompt, but the '#' before "as" starts a single line comment. So there is no need to change it into a '$'.

See for example:
https://tldp.org/LDP/abs/html/abs-guide.html#SPECIAL-CHARS

One issue with the above lines could be that there is no space character before the '#' that starts the comments. The ';' is a command separator character though, and I think that when a new command starts with '#' it's considered a comment.

So we could perhaps get rid of the ';', but on the other hand ";#" should make it extra clear that the command before it ended and that the rest of the line is a comment.

> Signed-off-by: Shao-Ce SUN <sunshaoce@iscas.ac.cn>
> ---
>     Fix wrong info in INSTALL
Instead of "info" you could say something more specific like "prompt character".

Also we start commit subjects with the area of the code, so maybe "INSTALL: fix wrong prompt character".

Show 11 quoted lines
> diff --git a/INSTALL b/INSTALL
> index 4140a3f5c8b..7bb3f48311d 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -5,8 +5,8 @@ Normally you can just do "make" followed by "make install", and that
>  will install the git programs in your own ~/bin/ directory.  If you want
>  to do a global install, you can do
>
> -       $ 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

Here a '#' is changed into a '$' but also a space character is inserted before the '$' without any explanation.

> +       # make prefix=/usr install install-doc install-html install-info ; # as root

Here only a space character is inserted before the second '#' without any explanation.

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “Fix wrong info in `INSTALL`”
  1. Fix wrong info in `INSTALL`Shao-Ce SUN via GitGitGadget, May 24, 2022
  2. Ævar Arnfjörð BjarmasonMay 24, 2022
  3. Philippe BlainMay 24, 2022
  4. Junio C HamanoMay 24, 2022
  5. Christian CouderMay 25, 2022
  6. Junio C HamanoMay 25, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.