shithub: patches

ref: 4ac3a0224ed9d54818f858fba69c8e94f38f2c12
dir: /9front/c32dabd4853888f62f09a6d3f8e0deed4077b6a7.patch/

View raw version
From: Romano <[email protected]>
Date: Fri, 12 Jul 2024 20:40:40 +0000
Subject: [PATCH] rc: updated man page

---
diff 675bcd62992e59002c834ef445d515b346f4374d c32dabd4853888f62f09a6d3f8e0deed4077b6a7
--- a/sys/man/1/rc
+++ b/sys/man/1/rc
@@ -825,7 +825,13 @@
 When
 .I rc
 starts executing it reads variable and function definitions from its
-environment.
+environment, except for the special variables
+.BR $* ,
+.BR $pid ,
+and
+.BR $apid ,
+and
+.BR $status .
 .SS Special Variables
 The following variables are set or used by
 .IR rc .
@@ -1019,7 +1025,16 @@
 .B ~
 to check the value of
 .B $status
-changes
-.BR $status .
+as a changes
+.BR $status 
+when used alone as a built-in command. E.g.,
+.EX
+cpu% status=b; ~ $status a; echo $status
+no match
+cpu% status=b; if(~ $status a; echo $status) echo $status
+no match
+b
+cpu%
+.EE
 .PP
 Free carets don't get inserted next to keywords.