-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NIH: rewrite getopt #2445
NIH: rewrite getopt #2445
Conversation
I swear, if I see the silly globals that the old getopt had, I will...do nothing...and just nag about it |
#define FLAG_LONGONLY 0x04 /* operate as getopt_long_only */ | ||
int opterr = 1; | ||
int optopt = 0; | ||
int optind = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OH FFS
I like the idea, but can we have |
We could do that, but I thought that would be more boilerplate for little gain |
can we at least document the behaviour then? |
Yes we can, and that reminds me, I forgot to write the man page, shame on me! |
This causes the kernel to return EOF, which in turn confuses everything. This is a regression from the LibVT port of VirtualConsole.
It's a bit weird to get a newline after plain text but not after, say, a URL list.
Now with |
Very cool stuff!
…On Sat, May 30, 2020 at 4:17 PM Sergey Bugaev ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/10091584/83327436-7cb76d00-a284-11ea-8098-60acb184efbf.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2445 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADK2M4GOJ5RB2NV7HNMGNN3RUDW6DANCNFSM4NOJGZLQ>
.
|
Fixes #91
cc @alimpfard 😉