summary refs log tree commit diff
path: root/src/funcs/suspend
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-06 18:59:31 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-10-06 18:59:31 +0800
commit82a74acd4885849e1e5684002d78e55deb6a6843 (patch)
tree6c1f33a1ad6795b4d7bfa94c8fe07e9e287bc8fa /src/funcs/suspend
parent[MEMALLOC] Add pushstackmark (diff)
downloaddash-82a74acd4885849e1e5684002d78e55deb6a6843.tar.gz
dash-82a74acd4885849e1e5684002d78e55deb6a6843.zip
[BUILTIN] Treat OPTIND=0 in the same way as OPTIND=1
Previously setting OPTIND to 0 would cause subsequent getopts calls to fail.
This patch makes dash reset the getopts parameters the same way as OPTIND=1.

Both behaviours are allowed by POSIX but other common shells do tolerate this
case.
Diffstat (limited to 'src/funcs/suspend')
0 files changed, 0 insertions, 0 deletions
pan>Add DCH to shottyJune McEnroe 2019-07-12Support insert mode in shottyJune McEnroe 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe