Hacker News new | ask | show | jobs
by philipwhiuk 885 days ago
> Please note that try is a prototype and not a full sandbox, and should not be used to execute commands that you don't already trust on your system, (i.e. network calls are all allowed)
2 comments

True, ‘try’ won’t make reading and understanding a command obsolete, but it’s a great tool to prevent accidental deletion of important files, like OP described.
I was taught that Try was to be sure your command was well formed, if its a complex command with some regex for example...

Though I have not used it much over the years, as I havent had to do much personal regex for a long while.