The parameter parsing for the bash builtins is based on this: #define ISOPTION(s, c) (s[0] == '-' && !s[2] && s[1] == c)
In addition the -- is used to recognize negative numbers to signify process groups instead of just a process.
This is rather unusable for lonopts, but at least the -L could be coded without being too invasive.
The parameter parsing for the bash builtins is based on this:
#define ISOPTION(s, c) (s[0] == '-' && !s[2] && s[1] == c)
In addition the -- is used to recognize negative numbers to signify process groups instead of just a process.
This is rather unusable for lonopts, but at least the -L could be coded without being too invasive.