diff --git a/doc/base.html b/doc/base.html index a41e1239..fb06cf16 100644 --- a/doc/base.html +++ b/doc/base.html @@ -62,6 +62,17 @@ border: 1px solid black; } + #bash-table td, #bash-table th { + overflow: hidden; + border: 1px solid black; + padding: 1em; + } + + #bash-table { + border-collapse: collapse; + border: 1px solid black; + } + nav { flex-basis: 18rem; @@ -96,7 +107,7 @@ } #content-div { - width: 45em; + margin-bottom: 10em; } @@ -104,6 +115,10 @@ font-size: 1.2em; } + p { + width: 45em; + } + .nav-ul { list-style-type: none; margin: 0; @@ -210,6 +225,7 @@
+Where bash relies on an expansion phase, mshell keeps data on the stack and uses explicit operators.
+The snippets below show how to approach familiar shell tasks.
+
| Topic | bash | mshell | Notes |
|---|---|---|---|
| Brace expansion | +
+
+ |
+
+
+ |
+ Generate filenames explicitly, then run the command for each item. | +
| Tilde expansion | +
+
+ |
+
+
+ |
+ Tokens that begin with ~/ resolve to the user's home directory. |
+
| Parameter expansion | +
+
+ |
+
+
+ |
+ Use iff (if/else) to choose defaults while keeping values on the stack. |
+
| Command substitution | +
+
+ |
+
+
+ |
+ * > keeps stdout as a string; lines turns it into a list for further work. |
+
| Arithmetic expansion | +
+
+ |
+
+
+ |
+ Apply numeric operators directly, then convert to strings when composing arguments. | +
| Process substitution | +
+
+ |
+
+
+ |
+ psub writes captured output to a temporary file and returns the path. |
+
| Redirections | +
+
+ |
+
+
+ |
+ Use path literals with >/<; combine with * > and lines when you want to reuse the output. |
+