Zsh - Notes

command substitution


Command substitution in zsh can take two forms. In the traditional form, a command enclosed in backquotes (...) is replaced on the command line with its output. This is the form used by the older shells. Newer shells (like zsh) also provide another form, $(…). This form is much easier to nest.