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

Support for awk's sub-command execution? #31

Open
abathur opened this issue Jul 25, 2021 · 0 comments
Open

Support for awk's sub-command execution? #31

abathur opened this issue Jul 25, 2021 · 0 comments

Comments

@abathur
Copy link
Owner

abathur commented Jul 25, 2021

I'm in the process of implementing general support for resolving of commands that appear in the arguments to other commands, which should be available in the coming weeks.

awk can do this via both the system() function and with its piping feature. Actually "resholving" commands in here probably entails having a parser of some sort. I'm undecided but leaning towards this being out-of-scope for resholve and saying this (and maybe sed, expect, and any others with this problem) is a sign that any of these will need their own tools. (Mostly because, if we could define an interchange format, additional tools wouldn't be tied to the resholve's own dependence on Oil/OSH/python2 and would be more likely to be able to tackle these tasks with the help of whatever parsers exist in whatever language they may be written in...).

I managed to find a way to raise an error when this form is encountered:

I don't know how to handle awk sub commands yet--sorry :(

Next step: - See the feedback issue for a workaround

https://github.com/abathur/resholve/issues/31

I don't really understand how often this feature is used, so I don't know if this is going to be a big stumbling block or an occasional hurdle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant