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...".
[ Parent
| on HN ]
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.