Re:The Software Crisis
by wryl on Friday July 05, 2024 @04:26PM
(#40885690)
This is really, really cool! Definitely going to share this around, I love tools like this. They bring so much visibility into dark spaces.
[ Parent
| on HN ]
Re:The Software Crisis
by williamcotton on Friday July 05, 2024 @04:38PM
(#40885781)
Thanks! I started on it a week ago so it is just barely presentable at this point. I expect there are many glitches and bugs that I am completely unaware of!
The parser is off-the-shelf and seems robust. The AST-to-bash aspect is a bit messy. Wrapping arguments with spaces in them with either " or ' is somewhat of an unsolved problem. Like, it's hard to tell if someone wants to embed a bash variable and thus wants " or if they are using something like awk that uses $var itself and thus need '. We'll see how it goes!