Comment on Why are people seemingly against AI chatbots aiding in writing code?
nfms@lemmy.ml 2 months agoOP was able to write a bash script that works… on his machine 🤷 that’s far from having to review and send code to production either in FOSS or private development.
petrol_sniff_king@lemmy.blahaj.zone 2 months ago
I also noticed that they were talking about sending arguments to a custom function? That’s like a day-one lesson if you already program. But this was something they couldn’t find in regular search?
Maybe I misunderstood something.
sugar_in_your_tea@sh.itjust.works 2 months ago
Exactly. If you understand that functions are just commands, then it’s quite easy to extrapolate how to pass arguments to that function:
Once you understand that core concept, a lot of Bash makes way more sense. Oh, and most of the syntax I provided above is completely unnecessary, because Bash…