From efa50a247ccb917b29c1deb56726c2e8d324a6a0 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 7 Jul 2022 23:55:07 +0900 Subject: [PATCH] Regular updates --- bash.md | 16 +++++++++------- docker-compose.md | 6 ++++++ git-log-format.md | 2 +- jsdoc.md | 1 + 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/bash.md b/bash.md index bb6114b..b9d8eb3 100644 --- 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). diff --git a/docker-compose.md b/docker-compose.md index 20a846f..a8ad22f 100644 --- a/docker-compose.md +++ b/docker-compose.md @@ -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} diff --git a/git-log-format.md b/git-log-format.md index 8a8e30c..6020030 100644 --- a/git-log-format.md +++ b/git-log-format.md @@ -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) | diff --git a/jsdoc.md b/jsdoc.md index 1eee7ce..480c33f 100644 --- 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 -- 2.11.0