Re:Show HN: Interact with the terminal in plain English usin...
by bamboozled on Friday January 27, 2023 @01:35PM
(#34549863)
Looks cool? Won’t be that cool when it decides to delete random shit off your computer.
[ Parent
| on HN ]
Re:Show HN: Interact with the terminal in plain English usin...
by kris_wayton on Friday January 27, 2023 @01:44PM
(#34549973)
I suppose you would have to know to run "list all files that..." prior to "delete all files that...".
Re:Show HN: Interact with the terminal in plain English usin...
by jacquesm on Friday January 27, 2023 @01:49PM
(#34550037)
That's just asking for it. A nice little model reload in the middle of those two statements, or maybe the difference between 'delete' and 'list' is enough to enable 'evil mode' which then does something entirely different.
I'd list the files to a file and then process that file after checking for errors in a way that doesn't allow for new errors to be introduced. Better still I'd ask it to generate a command which lists the files, look it over, execute it and if that lists the right files manually change the 'ls' to 'rm'. Otherwise you're at the mercy of the gods. Who are like sysops: subtle and quick to anger.
Re:Show HN: Interact with the terminal in plain English usin...
by dylanjcastillo on Friday January 27, 2023 @01:51PM
(#34550068)
It won’t run any command unless you explicitly tell it to do so.
But yes I’d also like to provide some sort of warning if a certain command “looks dangerous”. I’ve been thinking about what's the best approach.