Skip to content
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

-- is the argument that should stop the processing of further arguments for Jawk, and pass the rest as ARGV to the AWK script #114

Open
bertysentry opened this issue Feb 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bertysentry
Copy link
Member

Currently, the - (simple dash) argument is a special argument to signals to Jawk that the rest of the arguments in the command line should not be parsed, but be considered as inputs to the AWK script (or variables, etc.).

But POSIX requires -- (double dash) to be this special argument. Simple dash means stdin as an input.

Also, gawk doesn't require --: the first "unknown" option passed as an argument is considered the end of the official gawk arguments, and the rest is considered as input files, variable assignments, and passed in ARGV.

See gawk's manual page.

@bertysentry bertysentry added the enhancement New feature or request label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant