4 ms·
Maybe ask ChatGPT4 to translate them?
by keepamovin 3y ago
Maybe ask ChatGPT4 to translate them?
- notnmeyer 3y agothis shouldn’t be necessary and is probably fairly error prone. using one shell doesn’t mean you can run stuff in another. if someone is saying they can’t run a bash script when they’re invoking bash from fish the most likely thing is they’re doing something wrong.
- pxc 3y agoI asked an LLM to translate a bash script to fish once and it just changed the shebang line... cracked me up. Edited to add: There's a program out there for translating bash to fish called babelfish. It's pretty good but not complete, so it won't work for all scripts. Worth checking out, though: https://github.com/bouk/babelfish https://github.com/bouk/babelfish
- keepamovin 3y agoYeah, I've seen those stuck in loops where they don't see an obvious mistake.