Execute a command and then exit

rbash

  • Restricted Bash shell, equivalent to `bash --restricted`.
    Does not permit changing the working directory, redirecting command output, or modifying environment variables, among other things.
    See also `histexpand` for history expansion.
    More information: <https://www.gnu.org/software/bash/manual/html_node/The-Restricted-Shell>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

rbash -c "{{command}}"

click the source code to copy install rbash on any operating system with command-not-found.com