[LinuxSIG] ChatGPT to write code [was: Re: bash_httpd.sh]
Craig Miller
cvmiller at gmail.com
Sun Mar 3 13:27:30 PST 2024
Ron,
I am glad you have it running. I think I'll stick with my web searching
for bash code for now.
There's something to be said for internet tested code (e.g. from
existing github projects). But I can see LLMs getting better at writing
code going forward.
Craig...
On 3/3/24 12:43, Ron / BCLUG wrote:
> Ron / BCLUG wrote on 2024-03-03 00:18:
>
>>> Also, the `trap` might be incorrectly placed, but I played around
>>> with it, changed the location and the signals, couldn't get anything
>>> to work in the 10 or so minutes I tried to get it working...
>>
>> On the other hand, this could be a user error.
>>
>> I "sourced" the script instead of changing to executable.
>
> Some playing around seems to indicate that running the script directly
> instead of sourcing it makes a difference.
>
>
> The `trap` is working now - Ctrl+C kills server, it traps the exit
> condition and cleans up the `fifo` file.
>
>
> User (me) error...
>
>
> This leaves no doubt, ChatGPT is a better bash programmer than I am.
>
>
> And probably better than 99% of Linux users out there.
>
> And... it's not even tuned to coding like CoPilot, it's just an LLM.
>
>
> Yikes.
>
> rb
>
>
--
IPv6 is the future, the future is here
ipv6hawaii.org
More information about the LinuxSIG
mailing list