Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| posix_shell_getpots [2019/09/30 10:58] – rpjday | posix_shell_getpots [2019/09/30 12:16] (current) – [Starting points] rpjday | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ===== Starting points ===== | ===== Starting points ===== | ||
| - | First, there has been much blood spilled discussing how to support // | + | First, there has been much blood spilled discussing how to support // |
| + | |||
| + | And, second, if the // | ||
| + | |||
| + | < | ||
| + | while getopts ab:c: opt ; do | ||
| + | </ | ||
| + | |||
| + | Do this (note the leading colon): | ||
| + | |||
| + | < | ||
| + | while getopts :ab:c: opt ; do | ||
| + | </ | ||
| + | |||
| + | Explanation below. | ||
| + | |||
| + | ===== Fleshed out example ===== | ||
| + | |||
| + | < | ||
| + | ... coming soon ... | ||
| + | </ | ||