-
Notifications
You must be signed in to change notification settings - Fork 50
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
doas interprets arguments meant for the target program as doas args #5
Comments
When running a command which requires arguments, try running "doas -- ls". The -- indicates an end to doas's argument list and makes sure any arguments given after the "--" are for the target program. |
That's a breakage with upstream... Don't mean to be irritating, just pointing it out. Sorry it took me so long to respond, been very busy past week or so!
|
I just tired the "ls -l" example given on FreeBSD using the doas port and it worked exactly the same way the OpenBSD version did in the example given above. I cannot duplicate the difference in behaviour. |
You need to prefix the optstring with + in glibc to get posix correct option parsing as opendoas does it. |
I have updated the documentation to make it clearer that -- should be used on systems where the dash is ambiguous. |
Example
doas.conf
:Then, running
ls
asroot
:Side note: appreciate your efforts to bring this tool to Linux!
The text was updated successfully, but these errors were encountered: