-1

S want to execute a script in zshrc and write the output in a variable

VAR=$( /path/to/tool/tool -parameter)

is this possible in zsh?

Benedikt S.
  • 31
  • 2
  • 8

1 Answers1

2

Yes, command substitution works in zsh just like other POSIX shells. See this section of the documentation.

Barmar
  • 741,623
  • 53
  • 500
  • 612