- [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
### 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).
- ./_data:/var/lib/mysql
```
+```yaml
+ # automatically restart container
+ restart: unless-stopped
+ # always, on-failure, no (default)
+```
+
## Advanced features
{: .-three-column}
| Variable | Description |
| --- | --- |
-| `%cD` | committer date (rfc2882) |
+| `%cD` | committer date (rfc2822) |
| `%cr` | committer date (relative) |
| `%ct` | committer date (unix timestamp) |
| `%ci` | committer date (iso8601) |