updated remaining WRAP blocks with Mkdocs Admonitions

This commit is contained in:
Sahal Ansari 2024-10-18 22:52:27 -05:00
parent 267eb1add1
commit 3fa1627998
3 changed files with 19 additions and 18 deletions

View File

@ -41,12 +41,13 @@ command](../../syntax/ccmd/arithmetic_eval.md):
$ echo "$a - $b - $?" $ echo "$a - $b - $?"
4 - 2 - 0 4 - 2 - 0
<WRAP info> Remember that inside arithmetic evaluation contexts, all !!! INFO ""
Remember that inside arithmetic evaluation contexts, all
other expansions are processed as usual (from left-to-right), and the other expansions are processed as usual (from left-to-right), and the
resulting text is evaluated as an arithmetic expression. Arithmetic resulting text is evaluated as an arithmetic expression. Arithmetic
already has a way to control precedence using parentheses, so it's very already has a way to control precedence using parentheses, so it's very
rare to need to nest arithmetic expansions within one another. It's rare to need to nest arithmetic expansions within one another. It's
used above only to illustrate how this precedence works. </WRAP> used above only to illustrate how this precedence works.
Unlike `((`, being a simple command `let` has its own environment. In Unlike `((`, being a simple command `let` has its own environment. In
Bash, built-ins that can set variables process any arithmetic under Bash, built-ins that can set variables process any arithmetic under

View File

@ -20,7 +20,8 @@ If `<NAME...>` is given, the line is word-split using
`<NAME>`. The remaining words are all assigned to the last `<NAME>` if `<NAME>`. The remaining words are all assigned to the last `<NAME>` if
more words than variable names are present. more words than variable names are present.
<WRAP center round info 90%> If no `<NAME>` is given, the whole line !!! INFO
If no `<NAME>` is given, the whole line
read (without performing word-splitting!) is assigned to the shell read (without performing word-splitting!) is assigned to the shell
variable [REPLY](../../syntax/shellvars.md#REPLY). Then, `REPLY` really contains variable [REPLY](../../syntax/shellvars.md#REPLY). Then, `REPLY` really contains
the line as it was read, without stripping pre- and postfix spaces and the line as it was read, without stripping pre- and postfix spaces and
@ -30,8 +31,6 @@ other things!
printf '"%s"\n' "$REPLY" printf '"%s"\n' "$REPLY"
done <<<" a line with prefix and postfix space " done <<<" a line with prefix and postfix space "
</WRAP>
If a timeout is given, or if the shell variable If a timeout is given, or if the shell variable
[TMOUT](../../syntax/shellvars.md#TMOUT) is set, it is counted from initially [TMOUT](../../syntax/shellvars.md#TMOUT) is set, it is counted from initially
waiting for input until the completion of input (i.e. until the complete waiting for input until the completion of input (i.e. until the complete

View File

@ -61,8 +61,9 @@ they are succesfully locked, and can operate without colliding. Setting
the timestamp is similar: One step to check the timespamp, a second step the timestamp is similar: One step to check the timespamp, a second step
to set the timestamp. to set the timestamp.
<WRAP center round tip 60%> <u>**Conclusion:**</u> We need an !!! NOTE ""
operation that does the check and the locking in one step. </WRAP> <u>**Conclusion:**</u> We need an
operation that does the check and the locking in one step.
A simple way to get that is to create a **lock directory** - with the A simple way to get that is to create a **lock directory** - with the
mkdir command. It will: mkdir command. It will: