commit: 8de30a05e835ec12e2dbda8fa26531d11912cd26
parent f5a8ea92ab3e340afa86a2c0c9201c7a30790089
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 18 Apr 2023 15:34:39 +0200
Fix typos in rc post
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/content/blog/2023-04-18-A-new-shell-for-Unix.md b/content/blog/2023-04-18-A-new-shell-for-Unix.md
@@ -72,7 +72,7 @@ You can also slice up lists and get a subset of items:
x=(one two three four five)
echo $x(-4) # one two three four
echo $x(2-) # two three four five
-echo $x(2-4) # two three
+echo $x(2-4) # two three four
```
A departure from Plan 9 rc is that the list operators can be used with strings
@@ -128,7 +128,7 @@ fn greet {
echo Hello $1
}
-greet ddevaut
+greet ddevault
```
Again, any command can be used, so this can be simplified to fn greet echo $1.
@@ -140,7 +140,7 @@ fn greet(user time) {
echo It is $time
}
-greet ddevaut `{date}
+greet ddevault `{date}
```
Note the use of `{script...} instead of $() for command expansion. Additional