~emersion/mrsh

ref: 448ee4f664f60d70d229af5462ef349240af8d7f mrsh/builtin/getopts.c -rw-r--r-- 2.5 KiB
Reset optind to 0

POSIX states that setting this to 0 is unspecified however setting it
to 1 is causing issues on certain versions of glibc.
Implement arg stack for functions
builtin: minor adjustements

* Fix usage strings
* Remove trailing whitespace
* Remove implicit long to int conversion
* Check errno when calling strtol
23791269 — delthas 2 years ago
builtin: fail on invalid options and accept "--"
625ff377 — delthas 2 years ago
builtin/getopts: implement getopts builtin
Next