Thread (19 messages) 19 messages, 3 authors, 2024-03-18

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

From: Alejandro Colomar <alx@kernel.org>
Date: 2024-03-17 15:00:24

On Sun, Mar 17, 2024 at 09:08:30PM +1300, Jeremy Baxter wrote:
quoted hunk ↗ jump to hunk
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/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help