OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Thu, 7 Jul 2022 14:55:07 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Thu, 7 Jul 2022 14:55:07 +0000 (23:55 +0900)
bash.md
docker-compose.md
git-log-format.md
jsdoc.md

diff --git a/bash.md b/bash.md
index bb6114b..b9d8eb3 100644 (file)
--- a/bash.md
+++ b/bash.md
@@ -25,6 +25,7 @@ This is a quick reference to getting started with Bash scripting.
 
 - [Learn bash in y minutes](https://learnxinyminutes.com/docs/bash/) _(learnxinyminutes.com)_
 - [Bash Guide](http://mywiki.wooledge.org/BashGuide) _(mywiki.wooledge.org)_
+- [Bash Hackers Wiki](https://wiki.bash-hackers.org) _(wiki.bash-hackers.org)_
 
 ### Example
 
@@ -777,13 +778,14 @@ read -n 1 ans    # Just one character
 
 ### Special variables
 
-| Expression | Description                            |
-| ---------- | -------------------------------------- |
-| `$?`       | Exit status of last task               |
-| `$!`       | PID of last background task            |
-| `$$`       | PID of shell                           |
-| `$0`       | Filename of the shell script           |
-| `$_`       | Last argument of the previous command  |
+| Expression         | Description                            |
+| ------------------ | -------------------------------------- |
+| `$?`               | Exit status of last task               |
+| `$!`               | PID of last background task            |
+| `$$`               | PID of shell                           |
+| `$0`               | Filename of the shell script           |
+| `$_`               | Last argument of the previous command  |
+| `${PIPESTATUS[n]}` | return value of piped commands (array) |
 
 See [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables).
 
index 20a846f..a8ad22f 100644 (file)
@@ -148,6 +148,12 @@ web:
     - ./_data:/var/lib/mysql
 ```
 
+```yaml
+  # automatically restart container
+  restart: unless-stopped
+  # always, on-failure, no (default)
+```
+
 ## Advanced features
 {: .-three-column}
 
index 8a8e30c..6020030 100644 (file)
@@ -104,7 +104,7 @@ See the next tables on format variables.
 
 | Variable | Description |
 | --- | --- |
-| `%cD` | committer date (rfc2882) |
+| `%cD` | committer date (rfc2822) |
 | `%cr` | committer date (relative) |
 | `%ct` | committer date (unix timestamp) |
 | `%ci` | committer date (iso8601) |
index 1eee7ce..480c33f 100644 (file)
--- a/jsdoc.md
+++ b/jsdoc.md
@@ -128,6 +128,7 @@ This syntax is [TypeScript-specific](https://github.com/Microsoft/TypeScript/wik
 ```js
 /**
  * @throws {FooException}
+ * @async
  * @private
  * @deprecated
  * @see