Re: [PATCH v2 2/6] intro.1: Document the meaning of the PS1 variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 17, 2024 at 09:08:30PM +1300, Jeremy Baxter wrote:
> It still doesn't explain what a variable is but I think
> shell variables are out of scope of this manual.
> ---
>  man1/intro.1 | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/man1/intro.1 b/man1/intro.1
> index 96eb3b7fc..090678750 100644
> --- a/man1/intro.1
> +++ b/man1/intro.1
> @@ -109,7 +109,10 @@ that it is ready for the next command.
>  The prompt can be customized in lots of ways, and one might include
>  information like the username, machine name, current directory, the time,
>  and so on.
> -An assignment PS1="What next, master? "
> +It can be changed by setting the value of the "PS1" (prompt string 1)
> +variable.

I think this is too long, and the existing text is informative enough.

> +An assignment
> +.B PS1="What next, master?\ "
>  would change the prompt as indicated.
>  .P
>  From this example we can see that there is the command
> -- 
> 2.44.0
> 
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux